From 97367cf773ec185d9dca6bb87873c35901ce4bc0 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 13 Jun 2017 23:12:33 -0300 Subject: [PATCH] Remove obsolete comment from rewrite.py This was made obsolete by 021e843427c6f5e79ee4a5b47ef3015599292822 --- _pytest/assertion/rewrite.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/_pytest/assertion/rewrite.py b/_pytest/assertion/rewrite.py index 79943cc53..6ec54d7e7 100644 --- a/_pytest/assertion/rewrite.py +++ b/_pytest/assertion/rewrite.py @@ -162,10 +162,6 @@ class AssertionRewritingHook(object): # modules not passed explicitly on the command line are only # rewritten if they match the naming convention for test files 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): state.trace("matched test file %r" % (fn,)) return True