summaryrefslogtreecommitdiff
path: root/tests/compat.py
blob: f3ef508c0833b11b4016d17cc0d3791335611532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# -*- coding: utf-8 -*-
# Copyright (c) The python-semanticversion project
# This code is distributed under the two-clause BSD License.

import sys

is_python2 = (sys.version_info[0] == 2)


try:  # pragma: no cover
    import unittest2 as unittest
except ImportError:  # pragma: no cover
    import unittest