Commit 3b4a3b56 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

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

parent 3b12929b
...@@ -12,7 +12,10 @@ def patch(): ...@@ -12,7 +12,10 @@ def patch():
import six import six
import traceback 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) TextTestResult_addError = six.get_unbound_function(TextTestResult.addError)
def addError(self, test, err): 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