Skip to content

Commit

Permalink
avoid differences between different Python 3 versions regarding the n…
Browse files Browse the repository at this point in the history
…umber of objects on traceback cycles for test `gc-after-test`
  • Loading branch information
d-maurer committed May 31, 2022
1 parent 04bb1a5 commit 53bd1b7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/zope/testrunner/tests/test_doctest.py
Expand Up @@ -22,7 +22,6 @@
import sys
import unittest

from six import PY2
from zope.testing import renormalizing

from ..util import uses_refcounts
Expand Down Expand Up @@ -397,11 +396,9 @@ def test_suite():
'N.NNN seconds'),
(re.compile(r'\(\d+[.]\d\d\d s\)'),
'(N.NNN s)'),
]
# objects on cycle differ between PY2 and PY3
+ (
[(re.compile(r'\[\d+\]'), '[C]')] if PY2
else []))))
# and different python 3 versions
(re.compile(r'\[\d+\]'), '[C]')])))

try:
import subunit
Expand Down

0 comments on commit 53bd1b7

Please sign in to comment.