Skip to content

Commit 9cf09cd

Browse files
committed
Remove some comments and improved changelog
1 parent eb5b163 commit 9cf09cd

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,10 @@ time or change existing behaviors in order to make them less surprising/more use
120120
fixtures and reports them;
121121
+ ``--setup-show``: performs normal test execution and additionally shows
122122
setup and teardown of fixtures;
123-
+ ``--keep-duplicates``: default behavior is now to ignore duplicate paths, you can
124-
retain the old behavior and running multiple times the tests
125-
using the ``--keep-duplicates`` cli argument `#1609`_;
123+
+ ``--keep-duplicates``: py.test now ignores duplicated paths given in the command
124+
line. To retain the previous behavior where the same test could be run multiple
125+
times by specifying it in the command-line multiple times, pass the ``--keep-duplicates``
126+
argument (`#1609`_);
126127

127128
Thanks `@d6e`_, `@kvas-it`_, `@sallner`_, `@ioggstream`_ and `@omarkohl`_ for the PRs.
128129

_pytest/main.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,10 @@ def pytest_ignore_collect(path, config):
162162
return True
163163

164164
# Skip duplicate paths.
165-
# TODO: is this called when specifying direct filenames
166-
# from command lines, eg.
167-
# py.test test_a.py test_b.py
168165
keepduplicates = config.getoption("keepduplicates")
169166
duplicate_paths = config.pluginmanager._duplicatepaths
170167
if not keepduplicates:
171168
if path in duplicate_paths:
172-
# TODO should we log this?
173169
return True
174170
else:
175171
duplicate_paths.add(path)

0 commit comments

Comments
 (0)