From 7e53f9432cc8329ffba85728b676d94ade96d234 Mon Sep 17 00:00:00 2001 From: Tareq Alayan Date: Wed, 14 Mar 2018 13:51:45 +0200 Subject: [PATCH] issue #3308: fix example in documentation https://github.com/pytest-dev/pytest/issues/3308 --- changelog/3308.trivial.rst | 1 + doc/en/usage.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/3308.trivial.rst diff --git a/changelog/3308.trivial.rst b/changelog/3308.trivial.rst new file mode 100644 index 000000000..693384836 --- /dev/null +++ b/changelog/3308.trivial.rst @@ -0,0 +1 @@ +Fix a python example when calling a fixture in doc/en/usage.rst diff --git a/doc/en/usage.rst b/doc/en/usage.rst index abd8bac2b..ffb380b78 100644 --- a/doc/en/usage.rst +++ b/doc/en/usage.rst @@ -337,7 +337,7 @@ to all testcases you can use ``LogXML.add_global_properties`` my_junit.add_global_property('ARCH', 'PPC') my_junit.add_global_property('STORAGE_TYPE', 'CEPH') - @pytest.mark.usefixtures(log_global_env_facts) + @pytest.mark.usefixtures(log_global_env_facts.__name__) def start_and_prepare_env(): pass