Skip to content

Commit 7624c5c

Browse files
wip: bait out errors in pathological_tests
1 parent 476f7b4 commit 7624c5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/pathological_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def badhash(ref):
100100
passed = 0
101101
errored = 0
102102
ignored = 0
103-
TIMEOUT = 5
103+
TIMEOUT = 1
104104

105105
def run_test(inp, regex):
106106
parser = argparse.ArgumentParser(description='Run cmark tests.')
@@ -138,12 +138,12 @@ def run_test(inp, regex):
138138
p.terminate()
139139
p.join()
140140
print('[TIMED OUT]')
141-
if allowed_failures[description]:
141+
if description in allowed_failures:
142142
ignored += 1
143143
else:
144144
errored += 1
145145
elif p.exitcode != 0:
146-
if allowed_failures[description]:
146+
if description in allowed_failures:
147147
ignored += 1
148148
else:
149149
errored += 1

0 commit comments

Comments
 (0)