backport Y->y fix from floris

--HG--
branch : pytest-2.7
This commit is contained in:
holger krekel 2015-04-17 11:57:09 +02:00
parent 6591d7a209
commit 173bd13ece
1 changed files with 1 additions and 1 deletions

View File

@ -1451,7 +1451,7 @@ class FixtureRequest(FuncargnamesCompatAttr):
if scopemismatch(invoking_scope, requested_scope):
# try to report something helpful
lines = self._factorytraceback()
pytest.fail("ScopeMismatch: you tried to access the %r scoped "
pytest.fail("ScopeMismatch: You tried to access the %r scoped "
"fixture %r with a %r scoped request object, "
"involved factories\n%s" %(
(requested_scope, argname, invoking_scope, "\n".join(lines))),