summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian+git@GrayVines.com>2012-01-01 21:26:46 -0500
committerJulian Berman <Julian+git@GrayVines.com>2012-01-01 21:26:46 -0500
commite8b741e6a2f19c767d00db87b730ed7ae9d39ee5 (patch)
tree499a6086d2e2347d66a3d6370d93a9abda815f92
parentbb69bdded671a589f8ad0390db735570c1fe0105 (diff)
downloadjsonschema-e8b741e6a2f19c767d00db87b730ed7ae9d39ee5.tar.gz
Broke 2.5 test support.
-rw-r--r--tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests.py b/tests.py
index d59f15d..c604953 100644
--- a/tests.py
+++ b/tests.py
@@ -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")