Skip to content

Commit b62aef3

Browse files
committed
Merge branch 'master' into features
2 parents 0303d95 + b63f677 commit b62aef3

22 files changed

+134
-75
lines changed

CHANGELOG.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,52 @@
88
99
.. towncrier release notes start
1010
11+
Pytest 3.1.3 (2017-07-03)
12+
=========================
13+
14+
Bug Fixes
15+
---------
16+
17+
- Fix decode error in Python 2 for doctests in docstrings. (`#2434
18+
<https://github.com/pytest-dev/pytest/issues/2434>`_)
19+
20+
- Exceptions raised during teardown by finalizers are now suppressed until all
21+
finalizers are called, with the initial exception reraised. (`#2440
22+
<https://github.com/pytest-dev/pytest/issues/2440>`_)
23+
24+
- Fix incorrect "collected items" report when specifying tests on the command-
25+
line. (`#2464 <https://github.com/pytest-dev/pytest/issues/2464>`_)
26+
27+
- ``deprecated_call`` in context-manager form now captures deprecation warnings
28+
even if the same warning has already been raised. Also, ``deprecated_call``
29+
will always produce the same error message (previously it would produce
30+
different messages in context-manager vs. function-call mode). (`#2469
31+
<https://github.com/pytest-dev/pytest/issues/2469>`_)
32+
33+
- Fix issue where paths collected by pytest could have triple leading ``/``
34+
characters. (`#2475 <https://github.com/pytest-dev/pytest/issues/2475>`_)
35+
36+
- Fix internal error when trying to detect the start of a recursive traceback.
37+
(`#2486 <https://github.com/pytest-dev/pytest/issues/2486>`_)
38+
39+
40+
Improved Documentation
41+
----------------------
42+
43+
- Explicitly state for which hooks the calls stop after the first non-None
44+
result. (`#2493 <https://github.com/pytest-dev/pytest/issues/2493>`_)
45+
46+
47+
Trivial/Internal Changes
48+
------------------------
49+
50+
- Create invoke tasks for updating the vendored packages. (`#2474
51+
<https://github.com/pytest-dev/pytest/issues/2474>`_)
52+
53+
- Update copyright dates in LICENSE, README.rst and in the documentation.
54+
(`#2499 <https://github.com/pytest-dev/pytest/issues/2499>`_)
55+
56+
1157
Pytest 3.1.2 (2017-06-08)
1258
=========================
1359

_pytest/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,13 @@ def pytest_runtestloop(session):
168168

169169

170170
def pytest_ignore_collect(path, config):
171-
p = path.dirpath()
172-
ignore_paths = config._getconftest_pathlist("collect_ignore", path=p)
171+
ignore_paths = config._getconftest_pathlist("collect_ignore", path=path.dirpath())
173172
ignore_paths = ignore_paths or []
174173
excludeopt = config.getoption("ignore")
175174
if excludeopt:
176175
ignore_paths.extend([py.path.local(x) for x in excludeopt])
177176

178-
if path in ignore_paths:
177+
if py.path.local(path) in ignore_paths:
179178
return True
180179

181180
# Skip duplicate paths.

changelog/2434.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/2440.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/2464.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/2469.bugfix

Lines changed: 0 additions & 4 deletions
This file was deleted.

changelog/2474.trivial

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/2486.bugfix

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/2493.doc

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/2499.trivial

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)