Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
aee47561
Commit
aee47561
authored
Sep 16, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Relax test condition (fix failures on FreeBSD buildbots)
parent
37ade9cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Lib/test/test_gc.py
Lib/test/test_gc.py
+4
-2
No files found.
Lib/test/test_gc.py
View file @
aee47561
...
...
@@ -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).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment