diff options
Diffstat (limited to 'Lib/test/test_py3kwarn.py')
-rw-r--r-- | Lib/test/test_py3kwarn.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 8cb0be9..c35e4b4 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -350,9 +350,9 @@ class TestStdlibRemovals(unittest.TestCase): try: __import__(module_name, level=0) except DeprecationWarning as exc: - self.assertTrue(module_name in exc.args[0], - "%s warning didn't contain module name" - % module_name) + self.assertIn(module_name, exc.args[0], + "%s warning didn't contain module name" + % module_name) except ImportError: if not optional: self.fail("Non-optional module {0} raised an " |