fix py32 failures and remove random print from commit accident
This commit is contained in:
parent
86c56c829a
commit
c9195a0f45
|
@ -1623,7 +1623,6 @@ class FixtureManager:
|
||||||
return fixturenames_closure, arg2fixturedefs
|
return fixturenames_closure, arg2fixturedefs
|
||||||
|
|
||||||
def pytest_generate_tests(self, metafunc):
|
def pytest_generate_tests(self, metafunc):
|
||||||
print "pytest core pytest_generate_tests"
|
|
||||||
for argname in metafunc.fixturenames:
|
for argname in metafunc.fixturenames:
|
||||||
faclist = metafunc._arg2fixturedefs.get(argname)
|
faclist = metafunc._arg2fixturedefs.get(argname)
|
||||||
if faclist is None:
|
if faclist is None:
|
||||||
|
|
|
@ -22,7 +22,8 @@ class Standalone:
|
||||||
def test_gen(testdir, anypython, standalone):
|
def test_gen(testdir, anypython, standalone):
|
||||||
if sys.version_info >= (2,7):
|
if sys.version_info >= (2,7):
|
||||||
result = testdir._run(anypython, "-c",
|
result = testdir._run(anypython, "-c",
|
||||||
"import sys;print sys.version_info >=(2,7)")
|
"import sys;print (sys.version_info >=(2,7))")
|
||||||
|
assert result.ret == 0
|
||||||
if result.stdout.str() == "False":
|
if result.stdout.str() == "False":
|
||||||
pytest.skip("genscript called from python2.7 cannot work "
|
pytest.skip("genscript called from python2.7 cannot work "
|
||||||
"earlier python versions")
|
"earlier python versions")
|
||||||
|
|
Loading…
Reference in New Issue