FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
html5lib-python/tests/runtests.py at python3-old · DKChan/html5lib-python · GitHub
DKChan
/
html5lib-python
Public
forked from
html5lib/html5lib-python
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
html5lib-python
/
tests
/
runtests.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
26 lines (22 loc) · 726 Bytes
Breadcrumbs
html5lib-python
/
tests
/
runtests.py
Copy path
File metadata and controls
26 lines (22 loc) · 726 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import
sys
import
os
import
glob
import
unittest
#Allow us to import the parent module
os
.
chdir
(
os
.
path
.
split
(
os
.
path
.
abspath
(
__file__
))[
0
])
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
curdir
))
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
pardir
))
sys
.
path
.
insert
(
0
,
os
.
path
.
join
(
os
.
path
.
abspath
(
os
.
pardir
),
"src"
))
def
buildTestSuite
():
suite
=
unittest
.
TestSuite
()
for
testcase
in
glob
.
glob
(
'test_*.py'
):
module
=
os
.
path
.
splitext
(
testcase
)[
0
]
suite
.
addTest
(
__import__
(
module
).
buildTestSuite
())
return
suite
def
main
():
results
=
unittest
.
TextTestRunner
().
run
(
buildTestSuite
())
return
results
if
__name__
==
"__main__"
:
results
=
main
()
if
not
results
.
wasSuccessful
():
sys
.
exit
(
1
)
Back
|
FazBrowse Home
|
New Git URL