2
0
Эх сурвалжийг харах

Avoid deprecated test methods.

Jelmer Vernooij 10 жил өмнө
parent
commit
ae1317f5e3

+ 1 - 1
dulwich/tests/test_repository.py

@@ -122,7 +122,7 @@ class RepositoryTests(TestCase):
             self.assertEqual(k in r, contained)
 
         for k, _ in test_keys:
-            self.assertRaisesRegexp(
+            self.assertRaisesRegex(
                 TypeError, "'name' must be bytestring, not unicode",
                 r.__getitem__, unicode(k)
             )