Change to allow for Python 2.7 in _parseBoolean test
@@ -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)
