Skip to content

Commit d37af20

Browse files
Merge pull request #1765 from The-Compiler/1763-cleanup
Cleanups for #1763
2 parents c9a2e61 + a309a57 commit d37af20

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
e.g. with ``request.getfuncargvalue``. BACKWARD INCOMPAT: Previously these params
2222
were simply never defined. So a fixture decorated like ``@pytest.fixture(params=[0, 1, 2])``
2323
only ran once. Now a failure is raised. Fixes (`#460`_). Thanks to
24-
`@nikratio`_ for bug report, `@RedBeardCode`_ and `@tomviner`_ for PR.
24+
`@nikratio`_ for bug report, `@RedBeardCode`_ and `@tomviner`_ for the PR.
2525

2626
* Create correct diff for strings ending with newlines. Fixes (`#1553`_).
2727
Thanks `@Vogtinator`_ for reporting. Thanks to `@RedBeardCode`_ and

_pytest/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@ def wrap_session(config, doit):
9494
excinfo = _pytest._code.ExceptionInfo()
9595
if initstate < 2 and isinstance(
9696
excinfo.value, pytest.exit.Exception):
97-
excinfo = _pytest._code.ExceptionInfo()
9897
sys.stderr.write('{0}: {1}\n'.format(
99-
type(excinfo.value).__name__, excinfo.value.msg))
98+
excinfo.typename, excinfo.value.msg))
10099
config.hook.pytest_keyboard_interrupt(excinfo=excinfo)
101100
session.exitstatus = EXIT_INTERRUPTED
102101
except:

0 commit comments

Comments
 (0)