Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use a non-empty list in the test
  • Loading branch information
vstinner committed Oct 23, 2018
commit 7ea864770e977996c7195f5df0c5b6e4bdfbe7a9
4 changes: 2 additions & 2 deletions Lib/test/test_gc.py
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ def test_refcount_errors(self):
import subprocess
code = textwrap.dedent('''
from test.support import gc_collect
a = []
a = [1, 2, 3]
b = [a]

# Simulate the refcount of "a" being too low (compared to the
Expand All @@ -920,7 +920,7 @@ def test_refcount_errors(self):
self.assertRegex(stderr,
br'refcount is too small')
self.assertRegex(stderr,
br'object : \[\]')
br'object : \[1, 2, 3\]')
self.assertRegex(stderr,
br'type : list')
self.assertRegex(stderr,
Expand Down