This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients ezio.melotti, michael.foord, pitrou, serhiy.storchaka, terry.reedy, vajrasky
Date 2013-06-02.03:08:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370142520.54.0.745323196319.issue18106@psf.upfronthosting.co.za>
In-reply-to
Content
I redo the test as Terry J. Reedy suggested. I use label in loop, utilize subTest receiving label parameter, and pass messages to only necessary asserts.

So roughly if the test fails, we would get something like this:

======================================================================
FAIL: test_copying (__main__.TestOrderedDict) (label='OrderedDict(od)')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_collections.py", line 1237, in test_copying
    self.assertTrue(dup is not dup, msg)
AssertionError: False is not true : 
copy: OrderedDict([('c', 1), ('b', 2), ('a', 3), ('d', 4), ('e', 5), ('f', 6)])
od: OrderedDict([('c', 1), ('b', 2), ('a', 3), ('d', 4), ('e', 5), ('f', 6)])

======================================================================
FAIL: test_copying (__main__.TestCounter) (label='Counter(words)')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Lib/test/test_collections.py", line 942, in test_copying
    self.assertEqual(type(dup), type(''), msg)
AssertionError: <class 'collections.Counter'> != <class 'str'> : 
copy: Counter({'which': 2, 'witches': 1, 'witch': 1, 'watch': 1, 'wrist': 1, 'had': 1})
words: Counter({'which': 2, 'witches': 1, 'had': 1, 'watch': 1, 'witch': 1, 'wrist': 1})
History
Date User Action Args
2013-06-02 03:08:40vajraskysetrecipients: + vajrasky, terry.reedy, pitrou, ezio.melotti, michael.foord, serhiy.storchaka
2013-06-02 03:08:40vajraskysetmessageid: <1370142520.54.0.745323196319.issue18106@psf.upfronthosting.co.za>
2013-06-02 03:08:40vajraskylinkissue18106 messages
2013-06-02 03:08:40vajraskycreate