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
53127d52
Commit
53127d52
authored
May 09, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
310b2283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+10
-4
No files found.
wcfs/wcfs_test.py
View file @
53127d52
...
@@ -34,10 +34,11 @@ from persistent.timestamp import TimeStamp
...
@@ -34,10 +34,11 @@ from persistent.timestamp import TimeStamp
import
os
,
os
.
path
,
subprocess
,
threading
import
os
,
os
.
path
,
subprocess
,
threading
from
errno
import
EINVAL
from
errno
import
EINVAL
from
golang
import
go
,
chan
,
func
,
defer
,
select
from
golang
import
chan
,
func
,
defer
,
select
from
golang
import
context
,
sync
from
golang
import
context
,
sync
from
zodbtools.util
import
ashex
as
h
,
fromhex
from
zodbtools.util
import
ashex
as
h
,
fromhex
from
pytest
import
raises
from
pytest
import
raises
from
six
import
reraise
from
.internal
import
mm
from
.internal
import
mm
# setup:
# setup:
...
@@ -438,7 +439,12 @@ class tWatch:
...
@@ -438,7 +439,12 @@ class tWatch:
# XXX in particular if there is a silly - e.g. syntax or type error in
# XXX in particular if there is a silly - e.g. syntax or type error in
# test code - we curently get stuck here.
# test code - we curently get stuck here.
print
(
'# serveDone.recv() ...'
)
print
(
'# serveDone.recv() ...'
)
t
.
_serveWG
.
wait
()
try
:
t
.
_serveWG
.
wait
()
except
Exception
as
e
:
# canceled is expected and ok
if
e
!=
context
.
canceled
:
reraise
(
e
,
None
,
e
.
__traceback__
)
print
(
'# serveDone ready'
)
print
(
'# serveDone ready'
)
t
.
wtx
.
close
()
t
.
wtx
.
close
()
...
@@ -477,7 +483,7 @@ class tWatch:
...
@@ -477,7 +483,7 @@ class tWatch:
(
rxq
.
send
,
msg
),
# 1
(
rxq
.
send
,
msg
),
# 1
)
)
if
_
==
0
:
if
_
==
0
:
raise
ctx
.
err
()
# XXX ok? -> or just return?
raise
ctx
.
err
()
else
:
else
:
with
t
.
_rxmu
:
with
t
.
_rxmu
:
assert
stream
not
in
t
.
_accepted
assert
stream
not
in
t
.
_accepted
...
@@ -487,7 +493,7 @@ class tWatch:
...
@@ -487,7 +493,7 @@ class tWatch:
(
t
.
_acceptq
.
send
,
(
stream
,
msg
)),
# 1
(
t
.
_acceptq
.
send
,
(
stream
,
msg
)),
# 1
)
)
if
_
==
0
:
if
_
==
0
:
raise
ctx
.
err
()
# XXX ok? -> or just return?
raise
ctx
.
err
()
# _send sends raw message via specified stream.
# _send sends raw message via specified stream.
...
...
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