homepage

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.

classification
Title: test_trace depends on dict repr() ordering
Type: behavior Stage: test needed
Components: Tests Versions: Python 3.3
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: Mark.Shannon, belopolsky
Priority: normal Keywords:

Created on 2012年01月29日 23:35 by Mark.Shannon, last changed 2022年04月11日 14:57 by admin. This issue is now closed.

Messages (2)
msg152288 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2012年01月29日 23:35
Changing PyDict_MINSIZE to 4 causes the following failure
python -m test.test_trace 
... 
======================================================================
ERROR: test_coverage (__main__.TestCoverage)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/mark/python/cpython/Lib/test/test_trace.py", line 307, in test_coverage
 self._coverage(tracer)
 File "/home/mark/python/cpython/Lib/test/test_trace.py", line 300, in _coverage
 tracer.run(cmd)
 File "/home/mark/python/cpython/Lib/trace.py", line 501, in run
 self.runctx(cmd, dict, dict)
 File "/home/mark/python/cpython/Lib/trace.py", line 509, in runctx
 exec(cmd, globals, locals)
 File "<string>", line 1, in <module>
 File "/home/mark/python/cpython/Lib/test/test_pprint.py", line 479, in test_main
 test.support.run_unittest(QueryTestCase)
 File "/home/mark/python/cpython/Lib/test/support.py", line 1403, in run_unittest
 _run_suite(suite)
 File "/home/mark/python/cpython/Lib/test/support.py", line 1378, in _run_suite
 raise TestFailed(err)
test.support.TestFailed: Traceback (most recent call last):
 File "/home/mark/python/cpython/Lib/test/test_pprint.py", line 273, in test_set_reprs
 self.assertEqual(pprint.pformat(cube), cube_repr_tgt)
AssertionError: '{frozenset(): frozenset({frozenset({2}), frozenset({0}), frozenset({1})}),\n fr [truncated]... != '{frozenset(): frozenset({frozenset({2}), frozenset({0}), frozenset({1})}),\n fr [truncated]...
Diff is 1436 characters long. Set self.maxDiff to None to see it.
======================================================================
ERROR: test_coverage_ignore (__main__.TestCoverage)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "/home/mark/python/cpython/Lib/test/test_trace.py", line 322, in test_coverage_ignore
 self._coverage(tracer)
 File "/home/mark/python/cpython/Lib/test/test_trace.py", line 300, in _coverage
 tracer.run(cmd)
 File "/home/mark/python/cpython/Lib/trace.py", line 501, in run
 self.runctx(cmd, dict, dict)
 File "/home/mark/python/cpython/Lib/trace.py", line 509, in runctx
 exec(cmd, globals, locals)
 File "<string>", line 1, in <module>
 File "/home/mark/python/cpython/Lib/test/test_pprint.py", line 479, in test_main
 test.support.run_unittest(QueryTestCase)
 File "/home/mark/python/cpython/Lib/test/support.py", line 1403, in run_unittest
 _run_suite(suite)
 File "/home/mark/python/cpython/Lib/test/support.py", line 1378, in _run_suite
 raise TestFailed(err)
test.support.TestFailed: Traceback (most recent call last):
 File "/home/mark/python/cpython/Lib/test/test_pprint.py", line 273, in test_set_reprs
 self.assertEqual(pprint.pformat(cube), cube_repr_tgt)
AssertionError: '{frozenset(): frozenset({frozenset({2}), frozenset({0}), frozenset({1})}),\n fr [truncated]... != '{frozenset(): frozenset({frozenset({2}), frozenset({0}), frozenset({1})}),\n fr [truncated]...
Diff is 1436 characters long. Set self.maxDiff to None to see it.
msg152904 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2012年02月08日 20:13
Failure occurs in test_pprint which is covered by issue 13907 
History
Date User Action Args
2022年04月11日 14:57:26adminsetgithub: 58119
2012年02月08日 20:13:33Mark.Shannonsetstatus: open -> closed
resolution: duplicate
messages: + msg152904
2012年02月04日 02:34:25terry.reedysetnosy: + belopolsky
stage: test needed

versions: + Python 3.3
2012年01月29日 23:35:52Mark.Shannoncreate

AltStyle によって変換されたページ (->オリジナル) /