Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
fc2e3763
Commit
fc2e3763
authored
Apr 04, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #11749: try to fix transient test_socket failure
parents
43b21687
43bf045b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Lib/test/test_socket.py
Lib/test/test_socket.py
+4
-0
No files found.
Lib/test/test_socket.py
View file @
fc2e3763
...
...
@@ -1411,6 +1411,10 @@ class UnbufferedFileObjectClassTestCase(FileObjectClassTestCase):
self
.
evt1
.
set
()
self
.
evt2
.
wait
(
1.0
)
first_seg
=
self
.
read_file
.
read
(
len
(
self
.
read_msg
)
-
3
)
if
first_seg
is
None
:
# Data not arrived (can happen under Windows), wait a bit
time
.
sleep
(
0.5
)
first_seg
=
self
.
read_file
.
read
(
len
(
self
.
read_msg
)
-
3
)
buf
=
bytearray
(
10
)
n
=
self
.
read_file
.
readinto
(
buf
)
self
.
assertEqual
(
n
,
3
)
...
...
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