8000 Check beautifulsoup in parser tests · awesome-python/html5lib-python@1baaa99 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1baaa99

Browse files
committed
Check beautifulsoup in parser tests
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40608
1 parent 852a776 commit 1baaa99

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_parser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@
5454
except ImportError:
5555
pass
5656

57+
try:
58+
import BeautifulSoup
59+
treeTypes["beautifulsoup"] = treebuilders.getTreeBuilder("beautifulsoup", fullTree=True)
60+
except ImportError:
61+
pass
62+
5763
sys.stdout.write('Testing trees '+ " ".join(treeTypes.keys()) + "\n")
5864

5965
#Run the parse error checks

0 commit comments

Comments
 (0)
0