diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2012-10-23 10:31:57 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2012-10-23 10:31:57 +0200 |
commit | 5fc72182e1a79d1cf65affdaf1b7b052e4cffd4b (patch) | |
tree | e7836120cf2e8c7db361efc984b992a1bacb15a1 /testlib.py | |
parent | ff4d1160a08c5925b4d98eba350a231bea2bd03f (diff) | |
download | logilab-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.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |