diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-16 15:04:49 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-16 15:04:49 (GMT) |
commit | aee47561fc888bd1554ee80fe0db4f3ca831aa7f (patch) | |
tree | b13a153a34d6a7d044469ea65afbaf1b82114505 /Lib | |
parent | 37ade9cb61f8d527a2ae380a5358264693bbbc59 (diff) | |
download | cpython-aee47561fc888bd1554ee80fe0db4f3ca831aa7f.zip cpython-aee47561fc888bd1554ee80fe0db4f3ca831aa7f.tar.gz cpython-aee47561fc888bd1554ee80fe0db4f3ca831aa7f.tar.bz2 |
Relax test condition (fix failures on FreeBSD buildbots)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_gc.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_gc.py b/Lib/test/test_gc.py index 1ba5a23..6c8907d 100644 --- a/Lib/test/test_gc.py +++ b/Lib/test/test_gc.py @@ -495,11 +495,13 @@ class GCTests(unittest.TestCase): stderr = run_command(code % "0") self.assertIn(b"gc: 2 uncollectable objects at shutdown", stderr) - self.assertNotIn(b"[<X 'first'>, <X 'second'>]", stderr) + self.assertNotIn(b"<X 'first'>", stderr) # With DEBUG_UNCOLLECTABLE, the garbage list gets printed stderr = run_command(code % "gc.DEBUG_UNCOLLECTABLE") self.assertIn(b"gc: 2 uncollectable objects at shutdown", stderr) - self.assertIn(b"[<X 'first'>, <X 'second'>]", stderr) + self.assertTrue( + (b"[<X 'first'>, <X 'second'>]" in stderr) or + (b"[<X 'second'>, <X 'first'>]" in stderr), stderr) # With DEBUG_SAVEALL, no additional message should get printed # (because gc.garbage also contains normally reclaimable cyclic # references, and its elements get printed at runtime anyway). |