mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Fix some tests
This commit is contained in:
+3
-3
@@ -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)
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user