Parcourir la source

Import expectedFailure for use in tests.

Jelmer Vernooij il y a 10 ans
Parent
commit
742442f586
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      dulwich/tests/__init__.py

+ 2 - 2
dulwich/tests/__init__.py

@@ -30,9 +30,9 @@ import tempfile
 # If Python itself provides an exception, use that
 import unittest
 if sys.version_info < (2, 7):
-    from unittest2 import SkipTest, TestCase as _TestCase, skipIf
+    from unittest2 import SkipTest, TestCase as _TestCase, skipIf, expectedFailure
 else:
-    from unittest import SkipTest, TestCase as _TestCase, skipIf
+    from unittest import SkipTest, TestCase as _TestCase, skipIf, expectedFailure
 
 
 def get_safe_env(env=None):