git.samba.org
/
jelmer
/
dulwich-libgit2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use TestTools' TestCase so TestSkipped gets picked up correctly.
[jelmer/dulwich-libgit2.git]
/
dulwich
/
tests
/
__init__.py
diff --git
a/dulwich/tests/__init__.py
b/dulwich/tests/__init__.py
index 35e59565603824a4f6921cff63de0d6e0268fb92..f33f5910f299085bcaee94d8eec8a686720f20cb 100644
(file)
--- a/
dulwich/tests/__init__.py
+++ b/
dulwich/tests/__init__.py
@@
-21,7
+21,10
@@
import unittest
-from unittest import TestCase
+try:
+ from testtools.testcase import TestCase
+except ImportError:
+ from unittest import TestCase
try:
# If Python itself provides an exception, use that