From dc7ae41f332153173866c02636758643559393e1 Mon Sep 17 00:00:00 2001 From: Stephan Hoyer Date: Fri, 8 Mar 2019 09:22:00 -0800 Subject: [PATCH 1/3] 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: From 877b57ae9b38b799311a6703986109670d0c624b Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 8 Mar 2019 22:33:07 -0300 Subject: [PATCH 2/3] Add CHANGELOG entry --- changelog/4898.trivial.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/4898.trivial.rst diff --git a/changelog/4898.trivial.rst b/changelog/4898.trivial.rst new file mode 100644 index 000000000..43efee011 --- /dev/null +++ b/changelog/4898.trivial.rst @@ -0,0 +1 @@ +Fix ``AttributeError: FixtureRequest has no 'confg' attribute`` bug in ``testdir.copy_example``. From a0f652c5597bd01e560eb87283d18520b34ed080 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 8 Mar 2019 22:41:57 -0300 Subject: [PATCH 3/3] Rename 4898.trivial.rst to 4898.bugfix.rst --- changelog/{4898.trivial.rst => 4898.bugfix.rst} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename changelog/{4898.trivial.rst => 4898.bugfix.rst} (100%) diff --git a/changelog/4898.trivial.rst b/changelog/4898.bugfix.rst similarity index 100% rename from changelog/4898.trivial.rst rename to changelog/4898.bugfix.rst