summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-11-20 10:22:02 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-11-20 10:22:02 +0100
commit5691dec5ee344aec61dbb812cbe4769fca4f002f (patch)
tree3f754ffb39af25658022219be061407d720ccc34 /tests
parentee5089abbd9bf8f7d32b6b9a51de841224e0a12d (diff)
downloadaioeventlet-5691dec5ee344aec61dbb812cbe4769fca4f002f.tar.gz
port tests to python 2.6
Diffstat (limited to 'tests')
-rw-r--r--tests/__init__.py6
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):