Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb1dfea6

Browse files
committed
Get tests running again under git.
1 parent06f65cd commitb1dfea6

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-
ifos.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-
assertos.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
importhtml5lib
2616
fromhtml5libimporthtml5parser,treebuilders

‎html5lib/tests/testdata‎

Submodule testdata added ate65afbd

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp