An interpreted, interactive, object-oriented programming language
CentOS Sources
2017-08-01 71084d584ff953f5463757ec6536406320560b4d
commit | author | age
6e8c2f 1 diff -up Python-2.7.2/Lib/test/test_weakref.py.skip-test-within-test_weakref-in-debug-build Python-2.7.2/Lib/test/test_weakref.py
CB 2 --- Python-2.7.2/Lib/test/test_weakref.py.skip-test-within-test_weakref-in-debug-build    2011-09-08 17:55:09.675392260 -0400
3 +++ Python-2.7.2/Lib/test/test_weakref.py    2011-09-08 17:59:08.857375903 -0400
4 @@ -550,6 +550,14 @@ class ReferencesTestCase(TestBase):
5          del c1, c2, C, D
6          gc.collect()
7  
8 +    # In a debug build, this fails with:
9 +    #   AssertionError: Lists differ: [] != ['C went away']
10 +    #   Second list contains 1 additional elements.
11 +    #   First extra element 0:
12 +    #   C went away
13 +    #   - []
14 +    #   + ['C went away']
15 +    @unittest.skipIf(hasattr(sys, 'getobjects'), 'debug build')
16      def test_callback_in_cycle_resurrection(self):
17          import gc
18