1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/3577522e05cd/
Changeset: 3577522e05cd
User: hpk42
Date: 2014-03-26 07:15:54
Summary: fix issue472: clarify that ``pytest.config.getvalue()`` cannot work
if it's triggered ahead of command line parsing.
Affected #: 2 files
diff -r f750c24d6b3fe7f6e5c5f8e256b22e34e3d10e09 -r
3577522e05cd08a1816324793801af642efe285b CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -18,6 +18,9 @@
- fix issue490: include pytest_load_initial_conftests in documentation
and improve docstring.
+- fix issue472: clarify that ``pytest.config.getvalue()`` cannot work
+ if it's triggered ahead of command line parsing.
+
2.5.2
-----------------------------------
diff -r f750c24d6b3fe7f6e5c5f8e256b22e34e3d10e09 -r
3577522e05cd08a1816324793801af642efe285b doc/en/skipping.txt
--- a/doc/en/skipping.txt
+++ b/doc/en/skipping.txt
@@ -286,4 +286,9 @@
def test_function(...):
pass
+.. note::
+ You cannot use ``pytest.config.getvalue()`` in code
+ imported before py.test's argument parsing takes place. For example,
+ ``conftest.py`` files are imported before command line parsing and thus
+ ``config.getvalue()`` will not execute correctly.
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit