python-semantic_version/tests/scripts/compat.py
2023-06-29 18:25:13 +02:00

15 lines
310 B
Python

# -*- 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