diff options
| author | Martin Vilcans <martin@librador.com> | 2022-11-07 20:49:18 +0100 |
|---|---|---|
| committer | Martin Vilcans <martin@librador.com> | 2022-11-07 20:49:18 +0100 |
| commit | 388a7807427cca871f60716edb36f4133db8d9c3 (patch) | |
| tree | cd63d4af16098567fa6340eddcf150d623c6b0bf /tests/testcompat.py | |
| parent | b08119fbfec9b3baaed32107a846c93cec339d57 (diff) | |
Remove unittest2 (Python 2 compatibility)
Diffstat (limited to 'tests/testcompat.py')
| -rw-r--r-- | tests/testcompat.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/testcompat.py b/tests/testcompat.py deleted file mode 100644 index e0d0cba..0000000 --- a/tests/testcompat.py +++ /dev/null @@ -1,17 +0,0 @@ -# Copyright (c) 2011 Martin Vilcans -# Licensed under the MIT license: -# http://www.opensource.org/licenses/mit-license.php - -"""Provides compatibility between Python 2 and 3. - -In Python 2 we use the unittest2 module. -The functionality of that module is already in Python 3, -so we don't depend on it. -This module exports the TestCase class from whatever unittest library we have. - -""" - -try: - from unittest2 import TestCase -except ImportError: - from unittest import TestCase |
