diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-11-20 10:22:02 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-11-20 10:22:02 +0100 |
commit | 5691dec5ee344aec61dbb812cbe4769fca4f002f (patch) | |
tree | 3f754ffb39af25658022219be061407d720ccc34 /tests | |
parent | ee5089abbd9bf8f7d32b6b9a51de841224e0a12d (diff) | |
download | aioeventlet-5691dec5ee344aec61dbb812cbe4769fca4f002f.tar.gz |
port tests to python 2.6
Diffstat (limited to 'tests')
-rw-r--r-- | tests/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index 757e47d..5843e5f 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,9 +1,13 @@ import aiogreen -import unittest try: import asyncio except ImportError: import trollius as asyncio +try: + # On Python 2.6, unittest2 is needed to get new features like addCleanup() + import unittest2 as unittest +except ImportError: + import unittest class TestCase(unittest.TestCase): def setUp(self): |