refine/fix isimportable-logic and ensure that 'tmpdir' has a python-importable name

--HG--
branch : trunk
This commit is contained in:
holger krekel
2010-04-27 16:10:25 +02:00
parent 8131f5bdc0
commit ed7a2d2da3
4 changed files with 18 additions and 3 deletions

View File

@@ -5,5 +5,5 @@ def test_funcarg(testdir):
item = testdir.getitem("def test_func(tmpdir): pass")
p = pytest_funcarg__tmpdir(FuncargRequest(item))
assert p.check()
bn = p.basename.strip("0123456789-")
bn = p.basename.strip("0123456789")
assert bn.endswith("test_func")