Skip to content

Commit e7b1f6e

Browse files
committed
Fix regular expression for duration in tests
1 parent 7254149 commit e7b1f6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_pytest_html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def assert_results(html, tests=1, duration=None, passed=1, skipped=0, failed=0,
5252

5353
# Asserts tests running duration
5454
if duration is not None:
55-
tests_duration = re.search('([\d,.])+ seconds', html)
55+
tests_duration = re.search('([\d,.]+) seconds', html)
5656
assert float(tests_duration.group(1)) >= float(duration)
5757

5858
# Asserts by outcome

0 commit comments

Comments
 (0)