-
Notifications
You must be signed in to change notification settings - Fork 2
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
Invalid file name on Windows #17
Comments
Apparently a single colon would be a problem as well, so we can't replace the double colon with a single colon. Probably best to replace colons with some other character, maybe a hyphen? The other question is whether we want to use this |
Yeah just replacing Another option might be to put plots for each file in their own directory (basically replacing |
Another downside would be an additional line or two to ensure that the directory is created before attempting to save the plot there. Right now we only have to do that once, for the general plot directory; this would require it for every plot. Personally I prefer the flat output directory (even with the relatively large Nengo test suite, there are only 244 plots) but I can see why some would prefer more structure. |
Windows does not allow colons in filenames. Rather than have different behavior on different platforms, we unconditionally replace colons with hyphens when generating the plot filename. This is the only place that we modify the nodeid. Fixes #17.
Windows does not allow colons in filenames. Rather than have different behavior on different platforms, we unconditionally replace colons with hyphens when generating the plot filename. This is the only place that we modify the nodeid. Fixes #17.
To reproduce:
test.py
pytest test.py --plots
Gives:
I suspect it's the
::
(since colons are used to denote drives on Windows).The text was updated successfully, but these errors were encountered: