diff options
Diffstat (limited to 'lib/spack/external/jsonschema/tests/compat.py')
-rw-r--r-- | lib/spack/external/jsonschema/tests/compat.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/spack/external/jsonschema/tests/compat.py b/lib/spack/external/jsonschema/tests/compat.py new file mode 100644 index 0000000000..b37483f5dd --- /dev/null +++ b/lib/spack/external/jsonschema/tests/compat.py @@ -0,0 +1,15 @@ +import sys + + +if sys.version_info[:2] < (2, 7): # pragma: no cover + import unittest2 as unittest +else: + import unittest + +try: + from unittest import mock +except ImportError: + import mock + + +# flake8: noqa |