]> granicus.if.org Git - python/commit
test_trashcan() and supporting class Ouch(): Jeremy noted that this test
authorTim Peters <tim.peters@gmail.com>
Thu, 11 Jul 2002 19:07:45 +0000 (19:07 +0000)
committerTim Peters <tim.peters@gmail.com>
Thu, 11 Jul 2002 19:07:45 +0000 (19:07 +0000)
commitc62b95e550a521760e9b9495bbd4f31ac4a15eb0
tree3bce5ef2c45abc9452773b88a93aee64ae44eb7d
parentf488b2c6d58d2a65ff21280471b0f0ebf7727462
test_trashcan() and supporting class Ouch():  Jeremy noted that this test
takes much longer to run in the context of the test suite than when run in
isolation.  That's because it forces a large number of full collections,
which take time proportional to the total number of gc'ed objects in the
whole system.

But since the dangerous implementation trickery that caused this test to
fail in 2.0, 2.1 and 2.2 doesn't exist in 2.3 anymore (the trashcan
mechanism stopped doing evil things when the possibility for compiling
without cyclic gc was taken away), such an expensive test is no longer
justified.  This checkin leaves the test intact, but fiddles the
constants to reduce the runtime by about a factor of 5.
Lib/test/test_gc.py