diff options
author | 2012-03-01 23:23:15 +0100 | |
---|---|---|
committer | 2012-03-01 23:23:15 +0100 | |
commit | 6ce9f197f4681875a2595a5a8d86bd047f993a99 (patch) | |
tree | 0bd35db35b9fe09eccd7262fcc60b4ada5f07e44 /pygithub3/tests/utils/core.py | |
parent | Merge branch 'docs' (diff) | |
download | python-github3-6ce9f197f4681875a2595a5a8d86bd047f993a99.tar.xz python-github3-6ce9f197f4681875a2595a5a8d86bd047f993a99.zip |
Python 2.6 compatibility
Diffstat (limited to 'pygithub3/tests/utils/core.py')
-rw-r--r-- | pygithub3/tests/utils/core.py | 5 |
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() |