summaryrefslogtreecommitdiff
path: root/testlib.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2012-10-23 10:31:57 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2012-10-23 10:31:57 +0200
commit5fc72182e1a79d1cf65affdaf1b7b052e4cffd4b (patch)
treee7836120cf2e8c7db361efc984b992a1bacb15a1 /testlib.py
parentff4d1160a08c5925b4d98eba350a231bea2bd03f (diff)
downloadlogilab-common-5fc72182e1a79d1cf65affdaf1b7b052e4cffd4b.tar.gz
python3: fix code and test so most tests go green. Partially closes #104047
the only failing test concerns the @monkeypatch decorator and fix is subject to controversy, so post-pone it so we may discuss about it.
Diffstat (limited to 'testlib.py')
-rw-r--r--testlib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testlib.py b/testlib.py
index 9dd541b..fe519ec 100644
--- a/testlib.py
+++ b/testlib.py
@@ -1168,6 +1168,10 @@ succeeded test into", osp.join(os.getcwd(), FILE_RESTART)
assertRaises = failUnlessRaises
+ if not hasattr(unittest.TestCase, 'assertItemsEqual'):
+ # python 3.2 has deprecated assertSameElements and is missing
+ # assertItemsEqual
+ assertItemsEqual = unittest.TestCase.assertSameElements
import doctest