-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
files property should never be None #69
Comments
In GitLab by @warsaw on Jun 11, 2019, 16:25 Did this happen to you? Can you provide a test case? |
In GitLab by @jaraco on Jun 11, 2019, 18:38 Right now, a Can you explain more about how this happened and why you expect the result to always be a list? |
In GitLab by @JohannesBuchner on Jun 11, 2019, 19:34 pytest got the use wrong and now I have a broken pytest installation on my system (they haven't issued a fix yet, but merged a patch into master). |
In GitLab by @jaraco on Jun 12, 2019, 14:14 Agreed it would be worthwhile to be explicit about null/error/exceptional conditions. The tests and docs currently focus on illustrating behavior only for the nominal cases. |
In GitLab by @jaraco on Jun 12, 2019, 14:19 I'd like to know more about the conditions in which the pytest installation broke. I would only have expected that error to emerge if there was some package without a file record. Isn't it reasonable for |
In GitLab by @JohannesBuchner on Jun 12, 2019, 14:36 I was able to trace it to pytest trying to find pytest11-group packages. With some debug output in _pytest.config before the error caused by the loop::
I get the following package information before the "TypeError: 'NoneType' object is not iterable" error:
I packaged that folder up for you: hypothesis-egg.tar.gz |
In GitLab by @JohannesBuchner on Jun 12, 2019, 14:45
Could you say when this distinction would/could be useful? No files metadata sounds like one way of expressing zero files are here. |
In GitLab by @jaraco on Sep 1, 2019, 16:40 So I've downloaded that metadata (thanks for providing that) and I can see it doesn't include any metadata about which files are present.
Since
Agreed. I'll now proceed to expand on the documentation. |
In GitLab by @jaraco on Sep 1, 2019, 17:00 I'm wondering if the interface should be less protective and should instead always throw exceptions when |
In GitLab by @warsaw on Sep 2, 2019, 16:37 I agree it feels more Pythonic, but if it's less consumer friendly, then practicality beats purity. |
In GitLab by @JohannesBuchner on Jun 11, 2019, 15:59
Hi,
I noticed pytest has an issue interpreting the files property being None. I wonder if you would accept the following patch:
A list seems much more natural for the files property.
Cheers,
Johannes
The text was updated successfully, but these errors were encountered: