Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
895b168c
Commit
895b168c
authored
Jan 27, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2f662197
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+3
-3
No files found.
wcfs/wcfs_test.py
View file @
895b168c
...
@@ -46,7 +46,7 @@ from errno import EINVAL, ENOENT, ENOTCONN
...
@@ -46,7 +46,7 @@ from errno import EINVAL, ENOENT, ENOTCONN
from
stat
import
S_ISDIR
from
stat
import
S_ISDIR
from
signal
import
SIGQUIT
,
SIGKILL
from
signal
import
SIGQUIT
,
SIGKILL
from
golang
import
go
,
chan
,
select
,
func
,
defer
,
default
from
golang
import
go
,
chan
,
select
,
func
,
defer
,
default
from
golang
import
context
,
sync
,
time
from
golang
import
context
,
errors
,
sync
,
time
from
zodbtools.util
import
ashex
as
h
,
fromhex
from
zodbtools.util
import
ashex
as
h
,
fromhex
import
pytest
;
xfail
=
pytest
.
mark
.
xfail
import
pytest
;
xfail
=
pytest
.
mark
.
xfail
from
pytest
import
raises
,
fail
from
pytest
import
raises
,
fail
...
@@ -948,7 +948,7 @@ def doCheckingPin(f, pinokByWLink, pinfunc=None): # -> []event(str)
...
@@ -948,7 +948,7 @@ def doCheckingPin(f, pinokByWLink, pinfunc=None): # -> []event(str)
try
:
try
:
req
=
wlink
.
recvReq
(
ctx
)
req
=
wlink
.
recvReq
(
ctx
)
except
Exception
as
e
:
except
Exception
as
e
:
if
e
is
context
.
canceled
:
# XXX -> errors.Is
if
e
rrors
.
Is
(
e
,
context
.
canceled
):
return
# cancel is expected after f completes
return
# cancel is expected after f completes
raise
raise
...
@@ -1984,7 +1984,7 @@ def procwait_(ctx, proc): # -> ok
...
@@ -1984,7 +1984,7 @@ def procwait_(ctx, proc): # -> ok
try
:
try
:
procwait
(
ctx
,
proc
)
procwait
(
ctx
,
proc
)
except
Exception
as
e
:
except
Exception
as
e
:
if
e
in
(
context
.
canceled
,
context
.
deadlineExceeded
):
# XXX -> errors.Is
if
e
rrors
.
Is
(
e
,
context
.
canceled
)
or
errors
.
Is
(
e
,
context
.
deadlineExceeded
):
return
False
return
False
raise
raise
return
True
return
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment