Skip to content

Conversation

@blueyed
Copy link
Contributor

@blueyed blueyed commented Nov 7, 2018

No description provided.

@blueyed blueyed added type: enhancement new feature or API change, should be merged into features branch topic: collection related to the collection phase labels Nov 7, 2018
(type(node), hello)
}
node.session.config.pluginmanager._duplicatepaths = set()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will losen that a bit, but still wonder if that's expected/sane.

diff --git a/testing/test_collection.py b/testing/test_collection.py
index 659d39c8..fbc8cc7b 100644
--- a/testing/test_collection.py
+++ b/testing/test_collection.py
@@ -101,9 +101,7 @@ def pytest_collect_file(path, parent):
 
         # HACK: unset _duplicatepaths, which appears to be necessary for this
         #       specific test setup?!
-        assert node.session.config.pluginmanager._duplicatepaths == {
-            (type(node), hello)
-        }
+        assert len(node.session.config.pluginmanager._duplicatepaths) == 1

It is likely due to this specific test setup, right? (also causes #4331)

@blueyed blueyed changed the title collection: cleanup/centralize keepduplicates handling [WIP/later] collection: cleanup/centralize keepduplicates handling Nov 8, 2018
@blueyed
Copy link
Contributor Author

blueyed commented Nov 8, 2018

Does not fly by itself - will go back to other collection improvements first.

@blueyed blueyed closed this Nov 8, 2018
@blueyed blueyed deleted the dupes branch October 22, 2019 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: collection related to the collection phase type: enhancement new feature or API change, should be merged into features branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant