Skip to content

Commit

Permalink
Merge pull request #4898 from shoyer/patch-1
Browse files Browse the repository at this point in the history
Fix broken error message in pytester
  • Loading branch information
nicoddemus committed Mar 9, 2019
2 parents 03ef546 + a0f652c commit 0f3d630
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog/4898.bugfix.rst
@@ -0,0 +1 @@
Fix ``AttributeError: FixtureRequest has no 'confg' attribute`` bug in ``testdir.copy_example``.
2 changes: 1 addition & 1 deletion src/_pytest/pytester.py
Expand Up @@ -693,7 +693,7 @@ def copy_example(self, name=None):
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:
Expand Down

0 comments on commit 0f3d630

Please sign in to comment.