make initial conftest finding ignore "--" arguments

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-07-01 19:27:40 +02:00
parent 6fa58fd8c9
commit f554fa03ae
3 changed files with 11 additions and 0 deletions

View File

@@ -36,6 +36,8 @@ class Conftest(object):
self._confcutdir = p
break
for arg in args + [current]:
if hasattr(arg, 'startswith') and arg.startswith("--"):
continue
anchor = current.join(arg, abs=1)
if anchor.check(): # we found some file object
self._path2confmods[None] = self.getconftestmodules(anchor)