We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent caae0ae commit ebc78caCopy full SHA for ebc78ca
test/core_ocaf_unittest.py
@@ -44,8 +44,11 @@ def assert_warns_deprecated():
44
warnings.simplefilter("always")
45
yield w
46
# Verify some things
47
- assert issubclass(w[-1].category, DeprecationWarning)
48
- assert "deprecated" in str(w[-1].message)
+ if not issubclass(w[-1].category, DeprecationWarning):
+ raise AssertionError("Wrong exception type")
49
+ if not "deprecated" in str(w[-1].message):
50
+ raise AssertionError("deprecated string not in message")
51
+
52
53
class TestOCAF(unittest.TestCase):
54
def test_create_doc(self):
0 commit comments