Skip to content

Commit 8a11f5f

Browse files
committed
Fix broken pytest.raises context manager
1 parent 4d216f6 commit 8a11f5f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/test_core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,8 @@ def test_multi_file_support(self):
393393
elif fail_exception_class == "RuleError":
394394
fail_except_class_instance = RuleError
395395

396-
msg = "FAILED TEST FILE: {0}".format(fail_test)
397-
398-
with pytest.raises(fail_except_class_instance, message=msg):
396+
with pytest.raises(fail_except_class_instance):
397+
print("Running test file {0}".format(fail_test))
399398
c = Core(
400399
source_data=data,
401400
schema_data=[schema] + partial_files,

0 commit comments

Comments
 (0)