Skip to content

Commit

Permalink
Fix broken pytest.raises context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Grokzen committed Oct 19, 2019
1 parent 4d216f6 commit 8a11f5f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,8 @@ def test_multi_file_support(self):
elif fail_exception_class == "RuleError":
fail_except_class_instance = RuleError

msg = "FAILED TEST FILE: {0}".format(fail_test)

with pytest.raises(fail_except_class_instance, message=msg):
with pytest.raises(fail_except_class_instance):
print("Running test file {0}".format(fail_test))
c = Core(
source_data=data,
schema_data=[schema] + partial_files,
Expand Down

0 comments on commit 8a11f5f

Please sign in to comment.