diff options
author | Ran Benita <ran@unusedvar.com> | 2020-01-20 23:08:09 +0200 |
---|---|---|
committer | Ran Benita <ran@unusedvar.com> | 2020-01-20 23:44:56 +0200 |
commit | fb99b5c66ee06ad0bd3336d8599448d1d3da4f7f (patch) | |
tree | 487bb4dc93b7c2b41c4b2d078b851e67f9145264 /testing/test_nose.py | |
parent | ddfa41b5a7f51e40559104d57f347c7177ed9b47 (diff) | |
download | pytest-fb99b5c66ee06ad0bd3336d8599448d1d3da4f7f.tar.gz |
Revert "Fix type errors after adding types to the `py` dependency"
This reverts commit 930a158a6a4d58ceb37aff97fa476215a68c915e.
Regression test from Bruno Oliveira.
Diffstat (limited to 'testing/test_nose.py')
-rw-r--r-- | testing/test_nose.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testing/test_nose.py b/testing/test_nose.py index 8a30755c9..469c127af 100644 --- a/testing/test_nose.py +++ b/testing/test_nose.py @@ -375,3 +375,17 @@ def test_skip_test_with_unicode(testdir): ) result = testdir.runpytest() result.stdout.fnmatch_lines(["* 1 skipped *"]) + + +def test_issue_6517(testdir): + testdir.makepyfile( + """ + from nose.tools import raises + + @raises(RuntimeError) + def test_fail_without_tcp(): + raise RuntimeError + """ + ) + result = testdir.runpytest() + result.stdout.fnmatch_lines(["* 1 passed *"]) |