Explorar el Código

Avoid deprecated test methods.

Jelmer Vernooij hace 10 años
padre
commit
ae1317f5e3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dulwich/tests/test_repository.py

+ 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)
             )