test_os windows failed test handling by derlih · Pull Request #4764 · RustPython/RustPython
here is copy of the failing messages. They look like all coming from the same reason.
can this be related to ci environment?
======================================================================
ERROR: test_values (test.test_os.EnvironTests.test_values)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\RustPython\RustPython\pylib\Lib\test\mapping_tests.py", line 151, in test_values
d = self._empty_mapping()
File "D:\a\RustPython\RustPython\pylib\Lib\test\test_os.py", line 1007, in _empty_mapping
os.environ.clear()
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 981, in clear
pass
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 979, in clear
self.popitem()
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 972, in popitem
del self[key]
File "D:\a\RustPython\RustPython\pylib/Lib\os.py", line 690, in __delitem__
unsetenv(encodedkey)
ValueError: illegal environment variable name
======================================================================
ERROR: test_values (test.test_os.EnvironTests.test_values)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\RustPython\RustPython\pylib\Lib\test\test_os.py", line 997, in tearDown
os.environ.clear()
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 981, in clear
pass
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 979, in clear
self.popitem()
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 972, in popitem
del self[key]
File "D:\a\RustPython\RustPython\pylib/Lib\os.py", line 690, in __delitem__
unsetenv(encodedkey)
ValueError: illegal environment variable name
======================================================================
ERROR: test_write (test.test_os.EnvironTests.test_write)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\RustPython\RustPython\pylib\Lib\test\mapping_tests.py", line 93, in test_write
p = self._empty_mapping()
File "D:\a\RustPython\RustPython\pylib\Lib\test\test_os.py", line 1007, in _empty_mapping
os.environ.clear()
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 981, in clear
pass
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 979, in clear
self.popitem()
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 972, in popitem
del self[key]
File "D:\a\RustPython\RustPython\pylib/Lib\os.py", line 690, in __delitem__
unsetenv(encodedkey)
ValueError: illegal environment variable name
======================================================================
ERROR: test_write (test.test_os.EnvironTests.test_write)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\RustPython\RustPython\pylib\Lib\test\test_os.py", line 997, in tearDown
os.environ.clear()
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 981, in clear
pass
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 979, in clear
self.popitem()
File "D:\a\RustPython\RustPython\pylib/Lib\_collections_abc.py", line 972, in popitem
del self[key]
File "D:\a\RustPython\RustPython\pylib/Lib\os.py", line 690, in __delitem__
unsetenv(encodedkey)
ValueError: illegal environment variable name