Closed
Description
It started to happen after de33df2
CC @zooba
======================================================================
ERROR: test_wmi_query_os_version (test.test_wmi.WmiTests.test_wmi_query_os_version)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\1\b\layout-appx-win32\Lib\test\test_wmi.py", line 16, in test_wmi_query_os_version
r = _wmi.exec_query("SELECT Version FROM Win32_OperatingSystem").split("\0")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError -2147417831] Security must be initialized before any interfaces are marshalled or unmarshalled. It cannot be changed once initialized
======================================================================
ERROR: test_wmi_query_repeated (test.test_wmi.WmiTests.test_wmi_query_repeated)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\1\b\layout-appx-win32\Lib\test\test_wmi.py", line 28, in test_wmi_query_repeated
self.test_wmi_query_os_version()
File "D:\a\1\b\layout-appx-win32\Lib\test\test_wmi.py", line 16, in test_wmi_query_os_version
r = _wmi.exec_query("SELECT Version FROM Win32_OperatingSystem").split("\0")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [WinError -2147417831] Security must be initialized before any interfaces are marshalled or unmarshalled. It cannot be changed once initialized
======================================================================
FAIL: test_wmi_query_repeated_error (test.test_wmi.WmiTests.test_wmi_query_repeated_error)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\a\1\b\layout-appx-win32\Lib\test\test_wmi.py", line 42, in test_wmi_query_repeated_error
self.test_wmi_query_error()
File "D:\a\1\b\layout-appx-win32\Lib\test\test_wmi.py", line 38, in test_wmi_query_error
self.fail("Expected OSError")
AssertionError: Expected OSError
----------------------------------------------------------------------
Ran 4 tests in 0.047s
Traceback (most recent call last):
FAILED (failures=1, errors=2)
test test_wmi failed
1 test failed again:
test_wmi