From: David Lehman dlehman@redhat.com
For one thing, we no longer aim for compatibility with python2. For another, this code was confusing pylint and causing it to issue warnings about using deprecated method "assertRaisesRegex" even though that method is not deprecated. --- tests/__init__.py | 7 ------- 1 file changed, 7 deletions(-)
diff --git a/tests/__init__.py b/tests/__init__.py index 47c7c52..e69de29 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,7 +0,0 @@ -import six -from unittest import TestCase - -# deprecation compatibility b/w python 2 and 3 -if six.PY2: - TestCase.assertRaisesRegex = TestCase.assertRaisesRegexp - TestCase.assertRegex = TestCase.assertRegexpMatches