Ezio Melotti added the comment:
Thanks Puneeth for the initial tests and Elena for expanding the fix and the
tests to cover assertDictEqual too.
I reworked a bit Elena's patch to make the checks in case.py more consistent
and simplified the tests.
With the attached patch, unittest_scse.py works fine, producing this output:
FF
======================================================================
FAIL: test_compare (__main__.SCSE)
----------------------------------------------------------------------
Traceback (most recent call last):
File "unittest_scse.py", line 14, in test_compare
self.assertEqual(arr1, arr2)
AssertionError: Lists differ: [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,[29953
chars]1, 1] != [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,[29953 chars]2, 2]
First differing element 0:
1
2
======================================================================
FAIL: test_compare_2 (__main__.SCSE)
----------------------------------------------------------------------
Traceback (most recent call last):
File "unittest_scse.py", line 24, in test_compare_2
self.assertEqual(arr1, arr2)
AssertionError: Lists differ: [1, 1[29932 chars] 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] != [1, 1[29932 chars] 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2]
First differing element 9999:
1
2
----------------------------------------------------------------------
Ran 2 tests in 0.010s
FAILED (failures=2)
----------
stage: test needed -> commit review
Added file: http://bugs.python.org/file36295/issue19217-3.diff
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue19217>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com