Skip to content

Commit b1dfea6

Browse files
committed
Get tests running again under git.
1 parent 06f65cd commit b1dfea6

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "testdata"]
2+
path = html5lib/tests/testdata
3+
url = git://github.com/html5lib/html5lib-tests.git

html5lib/tests/support.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,10 @@
77

88
base_path = os.path.split(__file__)[0]
99

10-
if os.path.exists(os.path.join(base_path, 'testdata')):
11-
#release
12-
test_dir = os.path.join(base_path, 'testdata')
13-
else:
14-
#development
15-
test_dir = os.path.abspath(
16-
os.path.join(base_path,
17-
os.path.pardir, os.path.pardir,
18-
os.path.pardir, 'testdata'))
19-
assert os.path.exists(test_dir), "Test data not found"
20-
#import the development html5lib
21-
sys.path.insert(0, os.path.abspath(os.path.join(base_path,
22-
os.path.pardir,
23-
os.path.pardir)))
10+
test_dir = os.path.join(base_path, 'testdata')
11+
sys.path.insert(0, os.path.abspath(os.path.join(base_path,
12+
os.path.pardir,
13+
os.path.pardir)))
2414

2515
import html5lib
2616
from html5lib import html5parser, treebuilders

html5lib/tests/testdata

Submodule testdata added at e65afbd

0 commit comments

Comments
 (0)