Improve test for unicode

This commit is contained in:
hakril
2024-05-22 11:32:43 +02:00
parent 4bcec38cc1
commit d1e13fda8a
2 changed files with 10 additions and 6 deletions
+4 -5
View File
@@ -56,9 +56,8 @@ UNICODE_PIPE_NAME = u"Wyczyść moją rurę"
def test_pipe_unicode_name():
with windows.pipe.create(UNICODE_PIPE_NAME) as np:
# Try the connect API with the unicode name
# also Try the connect API with the unicode name
np2 = windows.pipe.connect(UNICODE_PIPE_NAME)
import pdb;pdb.set_trace()
print(repr(np))
print("LOL")
assert np.name == np2.name == UNICODE_PIPE_NAME
assert UNICODE_PIPE_NAME in np.path
assert UNICODE_PIPE_NAME in np2.path
+6 -1
View File
@@ -35,7 +35,12 @@ class TestSystemWithCheckGarbage(object):
assert ldrive
assert ldrive.name
assert ldrive.path
assert ldrive.volume_info
try:
assert ldrive.volume_info
except WindowsError as e:
#handle ERROR_NOT_READY returned by A: in github CI
if e.winerror != ERROR_NOT_READY:
raise
def test_wmi(self):
return windows.system.wmi