Fix some tests

This commit is contained in:
hakril
2024-05-22 11:40:38 +02:00
parent d1e13fda8a
commit cab8be5311
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -58,6 +58,6 @@ def test_pipe_unicode_name():
with windows.pipe.create(UNICODE_PIPE_NAME) as np:
# also Try the connect API with the unicode name
np2 = windows.pipe.connect(UNICODE_PIPE_NAME)
assert np.name == np2.name == UNICODE_PIPE_NAME
assert UNICODE_PIPE_NAME in np.path
assert UNICODE_PIPE_NAME in np2.path
assert np.name == np2.name
assert np.name.endswith(UNICODE_PIPE_NAME)
assert np2.name.endswith(UNICODE_PIPE_NAME)
+2 -1
View File
@@ -1,6 +1,7 @@
import ctypes
import pytest
import windows
import windows.generated_def as gdef
from .pfwtest import *
@@ -39,7 +40,7 @@ class TestSystemWithCheckGarbage(object):
assert ldrive.volume_info
except WindowsError as e:
#handle ERROR_NOT_READY returned by A: in github CI
if e.winerror != ERROR_NOT_READY:
if e.winerror != gdef.ERROR_NOT_READY:
raise
def test_wmi(self):