mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Improve test for unicode
This commit is contained in:
+4
-5
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user