From dc7ae41f332153173866c02636758643559393e1 Mon Sep 17 00:00:00 2001 From: Stephan Hoyer Date: Fri, 8 Mar 2019 09:22:00 -0800 Subject: [PATCH] Fix broken error message in pytester --- src/_pytest/pytester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: