pytest-dev / pytest-dev/pytest-xdist
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 287
- Avg merge
- 9h 30m
- Merged PRs (30d)
- 2
Description
System Info :
Python version : 3.6.10
OS : Windows 10 (64 bit)
Running pytest -n auto --disable-warnings wmt19_test.py gives me error which is unexpected :
_____________________________ TranslateDeEnWmt19Test.test_download_and_prepare_as_dataset _____________________________
[gw1] win32 -- Python 3.6.10 c:\users\eshan\anaconda3\envs\keras-gpu\python.exe
..\testing\dataset_builder_testing.py:153: in setUp
super(DatasetBuilderTestCase, self).setUp()
C:\Users\eshan\Desktop\updates tfds\datasets\tensorflow_datasets\testing\test_case.py:71: in setUp
???
c:\users\eshan\anaconda3\envs\keras-gpu\lib\site-packages\tensorflow_core\python\platform\test.py:76: in get_temp_dir
return _googletest.GetTempDir()
c:\users\eshan\anaconda3\envs\keras-gpu\lib\site-packages\tensorflow_core\python\platform\googletest.py:78: in GetTempDir
temp_dir = tempfile.mkdtemp(prefix=temp_dir.rstrip('.py'))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
suffix = '', prefix = 'C:\\Users\\eshan\\AppData\\Local\\Temp\\<string>', dir = 'C:\\Users\\eshan\\AppData\\Local\\Temp'
def mkdtemp(suffix=None, prefix=None, dir=None):
"""User-callable function to create and return a unique temporary
directory. The return value is the pathname of the directory.
Arguments are as for mkstemp, except that the 'text' argument is
not accepted.
The directory is readable, writable, and searchable only by the
creating user.
Caller is responsible for deleting the directory when done with it.
"""
prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
names = _get_candidate_names()
if output_type is bytes:
names = map(_os.fsencode, names)
for seq in range(TMP_MAX):
name = next(names)
file = _os.path.join(dir, prefix + name + suffix)
try:
> _os.mkdir(file, 0o700)
E OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\Users\\eshan\\AppData\\Local\\Temp\\<string>5o7k42t8'
c:\users\eshan\anaconda3\envs\keras-gpu\lib\tempfile.py:370: OSError
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing pytest -n auto --disable-warnings wmt19_test.py on Windows, then trace setup through testing/dataset_builder_testing.py and tensorflow_datasets/testing/test_case.py using the reported stack trace. Compare the temporary-directory behavior around tensorflow_core/python/platform/googletest.py and Python's tempfile.py; done means the reported WinError no longer occurs in this test run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100