Skip to content

Commit 5ab1ac0

Browse files
committed
Fix assert syntax so it's not true; this code isn't reached in the test unless it fails
and then it would have failed to fail.
1 parent 8e88ece commit 5ab1ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ def dummy_function():
829829
except coverage.sqldata.DataError:
830830
pass
831831
else:
832-
assert(0, "exception expected")
832+
assert 0, "exception expected"
833833
assert len(data.measured_files()) == 3
834834
assert [1, 2] == sorted_lines(data, fn1)
835835
assert [1,] == sorted_lines(data, fn2)

0 commit comments

Comments
 (0)