summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2011-01-28 19:51:48 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2011-01-28 19:51:48 (GMT)
commite180d3953f24330f1f5c3475ca4f46331a62312b (patch)
treee70c904c4aa3bae89b8192c1c0923aaadffdbb18 /Lib/unittest
parent66c908e6bffd5578b27cdecd398b5cd7e9874f90 (diff)
downloadcpython-e180d3953f24330f1f5c3475ca4f46331a62312b.zip
cpython-e180d3953f24330f1f5c3475ca4f46331a62312b.tar.gz
cpython-e180d3953f24330f1f5c3475ca4f46331a62312b.tar.bz2
Issue 10573: revert unittest docs to first / second
Minor internal change to unittest.TestCase.assertCountEqual Reviewed by R. David Murray
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/case.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py
index 0277ac8..65af16b 100644
--- a/Lib/unittest/case.py
+++ b/Lib/unittest/case.py
@@ -1022,17 +1022,17 @@ class TestCase(object):
- [0, 0, 1] and [0, 1] compare unequal.
"""
- actual_seq, expected_seq = list(first), list(second)
+ first_seq, second_seq = list(first), list(second)
try:
- actual = collections.Counter(actual_seq)
- expected = collections.Counter(expected_seq)
+ first = collections.Counter(first_seq)
+ second = collections.Counter(second_seq)
except TypeError:
# Handle case with unhashable elements
- differences = _count_diff_all_purpose(actual_seq, expected_seq)
+ differences = _count_diff_all_purpose(first_seq, second_seq)
else:
- if actual == expected:
+ if first == second:
return
- differences = _count_diff_hashable(actual_seq, expected_seq)
+ differences = _count_diff_hashable(first_seq, second_seq)
if differences:
standardMsg = 'Element counts were not equal:\n'