Merge pull request #4898 from shoyer/patch-1

Fix broken error message in pytester
This commit is contained in:
Bruno Oliveira 2019-03-08 22:53:01 -03:00 committed by GitHub
commit 0f3d630634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fix ``AttributeError: FixtureRequest has no 'confg' attribute`` bug in ``testdir.copy_example``.

View File

@ -693,7 +693,7 @@ class Testdir(object):
else:
raise LookupError(
"{} cant be found as module or package in {}".format(
func_name, example_dir.bestrelpath(self.request.confg.rootdir)
func_name, example_dir.bestrelpath(self.request.config.rootdir)
)
)
else: