summaryrefslogtreecommitdiff
path: root/tests/test_everything.py
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-04-22 21:28:08 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2018-04-22 21:47:34 +0200
commita2c8c533a791375a8ba337e6200672bd04914c08 (patch)
tree73c391c820da7b18027ec124b314a8cdd1ac22d6 /tests/test_everything.py
parent2aed3ec87bf48c6043965c82ae1a85e2fb583ff9 (diff)
downloadpygobject-a2c8c533a791375a8ba337e6200672bd04914c08.tar.gz
pypy: pass a warning subclass to PyErr_Warn and not an exception, pypy does't support that.
TypeError is wrong there anyway.
Diffstat (limited to 'tests/test_everything.py')
-rw-r--r--tests/test_everything.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_everything.py b/tests/test_everything.py
index f218928d..76543f7a 100644
--- a/tests/test_everything.py
+++ b/tests/test_everything.py
@@ -1330,7 +1330,7 @@ class TestBoxed(unittest.TestCase):
with warnings.catch_warnings(record=True) as warn:
warnings.simplefilter('always')
boxed = Everything.TestBoxedB(42, 47)
- self.assertTrue(issubclass(warn[0].category, TypeError))
+ self.assertTrue(issubclass(warn[0].category, DeprecationWarning))
self.assertEqual(boxed.some_int8, 0)
self.assertEqual(boxed.some_long, 0)