Skip to content

Commit 649a384

Browse files
authored
Merge branch 'features' into features_cache_dir
2 parents 14aac9c + ef62b86 commit 649a384

30 files changed

+590
-251
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ env:
2020
- TOXENV=py27-pexpect
2121
- TOXENV=py27-xdist
2222
- TOXENV=py27-trial
23+
- TOXENV=py27-numpy
2324
- TOXENV=py35-pexpect
2425
- TOXENV=py35-xdist
2526
- TOXENV=py35-trial
27+
- TOXENV=py35-numpy
2628
- TOXENV=py27-nobyte
2729
- TOXENV=doctesting
2830
- TOXENV=freeze

CHANGELOG.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,52 @@ Pytest 3.2.0 (unreleased)
1919
variables, that will be expanded.
2020

2121

22+
Pytest 3.1.3 (2017-07-03)
23+
=========================
24+
25+
Bug Fixes
26+
---------
27+
28+
- Fix decode error in Python 2 for doctests in docstrings. (`#2434
29+
<https://github.com/pytest-dev/pytest/issues/2434>`_)
30+
31+
- Exceptions raised during teardown by finalizers are now suppressed until all
32+
finalizers are called, with the initial exception reraised. (`#2440
33+
<https://github.com/pytest-dev/pytest/issues/2440>`_)
34+
35+
- Fix incorrect "collected items" report when specifying tests on the command-
36+
line. (`#2464 <https://github.com/pytest-dev/pytest/issues/2464>`_)
37+
38+
- ``deprecated_call`` in context-manager form now captures deprecation warnings
39+
even if the same warning has already been raised. Also, ``deprecated_call``
40+
will always produce the same error message (previously it would produce
41+
different messages in context-manager vs. function-call mode). (`#2469
42+
<https://github.com/pytest-dev/pytest/issues/2469>`_)
43+
44+
- Fix issue where paths collected by pytest could have triple leading ``/``
45+
characters. (`#2475 <https://github.com/pytest-dev/pytest/issues/2475>`_)
46+
47+
- Fix internal error when trying to detect the start of a recursive traceback.
48+
(`#2486 <https://github.com/pytest-dev/pytest/issues/2486>`_)
49+
50+
51+
Improved Documentation
52+
----------------------
53+
54+
- Explicitly state for which hooks the calls stop after the first non-None
55+
result. (`#2493 <https://github.com/pytest-dev/pytest/issues/2493>`_)
56+
57+
58+
Trivial/Internal Changes
59+
------------------------
60+
61+
- Create invoke tasks for updating the vendored packages. (`#2474
62+
<https://github.com/pytest-dev/pytest/issues/2474>`_)
63+
64+
- Update copyright dates in LICENSE, README.rst and in the documentation.
65+
(`#2499 <https://github.com/pytest-dev/pytest/issues/2499>`_)
66+
67+
2268
Pytest 3.1.2 (2017-06-08)
2369
=========================
2470

_pytest/compat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def isclass(object):
125125
if _PY3:
126126
import codecs
127127
imap = map
128+
izip = zip
128129
STRING_TYPES = bytes, str
129130
UNICODE_TYPES = str,
130131

@@ -160,7 +161,7 @@ def _escape_strings(val):
160161
STRING_TYPES = bytes, str, unicode
161162
UNICODE_TYPES = unicode,
162163

163-
from itertools import imap # NOQA
164+
from itertools import imap, izip # NOQA
164165

165166
def _escape_strings(val):
166167
"""In py2 bytes and str are the same type, so return if it's a bytes

_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.

0 commit comments

Comments
 (0)