Remove obsolete comment from rewrite.py

This was made obsolete by 021e843427
This commit is contained in:
Bruno Oliveira 2017-06-13 23:12:33 -03:00 committed by GitHub
parent 336cf3e1f5
commit 97367cf773
1 changed files with 0 additions and 4 deletions

View File

@ -162,10 +162,6 @@ class AssertionRewritingHook(object):
# modules not passed explicitly on the command line are only # modules not passed explicitly on the command line are only
# rewritten if they match the naming convention for test files # rewritten if they match the naming convention for test files
for pat in self.fnpats: for pat in self.fnpats:
# use fnmatch instead of fn_pypath.fnmatch because the
# latter might trigger an import to fnmatch.fnmatch
# internally, which would cause this method to be
# called recursively
if fn_pypath.fnmatch(pat): if fn_pypath.fnmatch(pat):
state.trace("matched test file %r" % (fn,)) state.trace("matched test file %r" % (fn,))
return True return True