aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/tests/utils/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/tests/utils/core.py')
-rw-r--r--pygithub3/tests/utils/core.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pygithub3/tests/utils/core.py b/pygithub3/tests/utils/core.py
index 8d18732..32170e4 100644
--- a/pygithub3/tests/utils/core.py
+++ b/pygithub3/tests/utils/core.py
@@ -1,6 +1,11 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
+try:
+ from unittest2 import TestCase # Python 2.6
+except ImportError:
+ from unittest import TestCase # Python >2.7
+
from .base import Mock, DummyRequest
request = DummyRequest()