Commit ec877857 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Arnaud Fontaine

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

parent 4e567ac4
......@@ -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