diff --git a/src/_pytest/pytester.py b/src/_pytest/pytester.py index fae243a50..a959516b0 100644 --- a/src/_pytest/pytester.py +++ b/src/_pytest/pytester.py @@ -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: