Commit 95f43c3d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

py3: define TestCase.assertItemsEqual = TestCase.assertCountEqual in Python 3.

parent 23a3ba7b
......@@ -12,7 +12,10 @@ def patch():
import six
import traceback
from unittest import TextTestResult, TextTestRunner
from unittest import TestCase, TextTestResult, TextTestRunner
if six.PY3:
TestCase.assertItemsEqual = TestCase.assertCountEqual
TextTestResult_addError = six.get_unbound_function(TextTestResult.addError)
def addError(self, test, err):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment