summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_literal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_literal.py b/test/test_literal.py
index 7b2a292a..6862b8b4 100644
--- a/test/test_literal.py
+++ b/test/test_literal.py
@@ -116,10 +116,10 @@ class TestParseBoolean(unittest.TestCase):
def testNonFalseBoolean(self):
test_value = Literal("abcd", datatype = _XSD_BOOLEAN)
- self.assertWarns(DeprecationWarning)
+ self.assertRaises(DeprecationWarning)
self.assertFalse(test_value.value)
test_value = Literal("10",datatype = _XSD_BOOLEAN)
- self.assertWarns(DeprecationWarning)
+ self.assertRaises(DeprecationWarning)
self.assertFalse(test_value.value)