Skip to content

Commit

Permalink
make flake8 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
d-maurer committed May 31, 2022
1 parent d773069 commit 04bb1a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/zope/testrunner/digraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,3 @@ def __init__(self, dfs):
def __repr__(self):
return "dfs=%d low=%d stacked=%s" \
% (self.dfs, self.low, self.stacked)


3 changes: 2 additions & 1 deletion src/zope/testrunner/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,8 @@ def stopTest(self, test):
cycles = [[repr_lines(o) for o in c] for c in g.sccs()]
del gc.garbage[:]
g = obj = None # avoid to hold cyclic garbage
o = c = None # Python 2: avoid to hold cyclic garbage
# Python 2: avoid to hold cyclic garbage
o = c = None # noqa: F841
gc.set_debug(gc_opts)
gccount = gc.collect() \
if uses_refcounts and self.options.gc_after_test else 0
Expand Down
2 changes: 1 addition & 1 deletion src/zope/testrunner/tests/testrunner-ex/gc-after-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_traceback_cycle(self):
def f():
try:
1/0
except Exception as e:
except Exception:
# create cycle
tb = exc_info()[2] # noqa: F841

Expand Down

0 comments on commit 04bb1a5

Please sign in to comment.