diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2017-12-08 18:48:36 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2018-01-08 11:48:37 +0100 |
commit | 4c4450cc29a0fc28cc26c88c49ee5d03c9a28316 (patch) | |
tree | 043971c1befef114361d1987dc45f86ffe1083d5 /tests/__init__.py | |
parent | bf36300f0608bf013f7596aa1dfaf3b2e0e33200 (diff) | |
download | m2crypto-4c4450cc29a0fc28cc26c88c49ee5d03c9a28316.tar.gz |
Bundle-in unittest2 0.5.1 for Python 2.6.
Fixes #195
Diffstat (limited to 'tests/__init__.py')
-rw-r--r-- | tests/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index a1439b8..0128703 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,7 +1,13 @@ import logging +import os.path +import sys from platform import linux_distribution +if sys.version_info[:2] <= (2, 6): + sys.path.insert(0, os.path.join(os.path.abspath(os.path.dirname(__file__)), + 'vendor')) + distro_string = linux_distribution(supported_dists=('redhat', 'fedora', 'debian'), full_distribution_name=False)[0] |