1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/024def3ca24f/
Changeset: 024def3ca24f
User: hpk42
Date: 2013-09-05 15:43:19
Summary: fix issue169: respect --tb=style with setup/teardown errors as
well.
Affected #: 2 files
diff -r 5d6cf6594dddc547420fccf9e09306af34b1cecb -r
024def3ca24fabc6fcf2176871d40acd49d4f32e CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -119,6 +119,8 @@
Changes between 2.3.4 and 2.3.5
-----------------------------------
+- fix issue169: respect --tb=style with setup/teardown errors as well.
+
- never consider a fixture function for test function collection
- allow re-running of test items / helps to fix pytest-reruntests plugin
diff -r 5d6cf6594dddc547420fccf9e09306af34b1cecb -r
024def3ca24fabc6fcf2176871d40acd49d4f32e testing/test_runner.py
--- a/testing/test_runner.py
+++ b/testing/test_runner.py
@@ -483,3 +483,14 @@
assert result.ret == 1
assert "UnicodeEncodeError" not in result.stderr.str()
+
+
+def test_failure_in_setup(testdir):
+ testdir.makepyfile("""
+ def setup_module():
+ 0/0
+ def test_func():
+ pass
+ """)
+ result = testdir.runpytest("--tb=line")
+ assert "def setup_module" not in result.stdout.str()
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