Skip to content

Commit 10d7d18

Browse files
committed
Dont fail xpath test for a timing check I used in development. not a real failure, and some circumstances can cause task scheduling to alert here
1 parent 2014f1a commit 10d7d18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/AdvancedHTMLParserTests/test_XPath.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,8 @@ def test_xpathCache(self):
492492
print ( "No Cache: %.7f" %( timeWithoutCache, ))
493493
print ( "W/ Cache: %.7f" %( timeWithCache, ))
494494

495-
assert timeWithCache < timeWithoutCache , 'Expected compiling XPath strings to be faster when caching the compiled result, but was not.\nTime with cache : %.7f\nTime without cache: %.7f' %( timeWithCache, timeWithoutCache)
495+
# Don't fail the test for this, can be other things
496+
# assert timeWithCache < timeWithoutCache , 'Expected compiling XPath strings to be faster when caching the compiled result, but was not.\nTime with cache : %.7f\nTime without cache: %.7f' %( timeWithCache, timeWithoutCache)
496497

497498

498499
def test_xpathCatchMissingCloseParen(self):

0 commit comments

Comments
 (0)