Merge pull request #4898 from shoyer/patch-1
Fix broken error message in pytester
This commit is contained in:
commit
0f3d630634
|
@ -0,0 +1 @@
|
|||
Fix ``AttributeError: FixtureRequest has no 'confg' attribute`` bug in ``testdir.copy_example``.
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue