diff options
author | Julian Berman <Julian+git@GrayVines.com> | 2012-01-01 21:26:46 -0500 |
---|---|---|
committer | Julian Berman <Julian+git@GrayVines.com> | 2012-01-01 21:26:46 -0500 |
commit | e8b741e6a2f19c767d00db87b730ed7ae9d39ee5 (patch) | |
tree | 499a6086d2e2347d66a3d6370d93a9abda815f92 | |
parent | bb69bdded671a589f8ad0390db735570c1fe0105 (diff) | |
download | jsonschema-e8b741e6a2f19c767d00db87b730ed7ae9d39ee5.tar.gz |
Broke 2.5 test support.
-rw-r--r-- | tests.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -452,6 +452,10 @@ class TestValidate(unittest.TestCase): with self.assertRaises(SchemaError): validate(1, {u"type" : u"foo"}) + @unittest.skipIf( + sys.version_info[:2] == (2, 5), + "Python 2.5 lacks catch_warnings, and I am lazy." + ) def test_unknown_type_warn(self): with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") @@ -465,6 +469,10 @@ class TestValidate(unittest.TestCase): with self.assertRaises(SchemaError): validate(1, {u"foo" : u"bar"}) + @unittest.skipIf( + sys.version_info[:2] == (2, 5), + "Python 2.5 lacks catch_warnings, and I am lazy." + ) def test_unknown_property_warn(self): with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") |