Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
689538e5
Commit
689538e5
authored
Jan 31, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the customized lock_tests under PyPy
parent
44d93f00
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
575 deletions
+7
-575
src/gevent/resolver_thread.py
src/gevent/resolver_thread.py
+2
-2
src/greentest/2.7pypy/lock_tests.py
src/greentest/2.7pypy/lock_tests.py
+0
-569
src/greentest/greentest/testcase.py
src/greentest/greentest/testcase.py
+1
-1
src/greentest/lock_tests.py
src/greentest/lock_tests.py
+2
-1
src/greentest/test___monkey_patching.py
src/greentest/test___monkey_patching.py
+2
-2
No files found.
src/gevent/resolver_thread.py
View file @
689538e5
...
...
@@ -3,7 +3,7 @@
Native thread-based hostname resolver.
"""
import
_socket
from
gevent._compat
import
text_type
from
gevent.hub
import
get_hub
...
...
@@ -11,7 +11,7 @@ __all__ = ['Resolver']
# trigger import of encodings.idna to avoid https://github.com/gevent/gevent/issues/349
text_type
(
'foo'
)
.
encode
(
'idna'
)
u'foo'
.
encode
(
'idna'
)
class
Resolver
(
object
):
...
...
src/greentest/2.7pypy/lock_tests.py
deleted
100644 → 0
View file @
44d93f00
This diff is collapsed.
Click to expand it.
src/greentest/greentest/testcase.py
View file @
689538e5
...
...
@@ -44,7 +44,7 @@ class TimeAssertMixin(object):
if
sysinfo
.
EXPECT_POOR_TIMER_RESOLUTION
:
# pylint:disable=unused-argument
def
assertTimeWithinRange
(
self
,
delay
,
min_time
,
max_time
):
def
assertTimeWithinRange
(
self
,
time_taken
,
min_time
,
max_time
):
return
else
:
def
assertTimeWithinRange
(
self
,
time_taken
,
min_time
,
max_time
):
...
...
src/greentest/lock_tests.py
View file @
689538e5
...
...
@@ -423,7 +423,8 @@ class ConditionTests(BaseTestCase):
Bunch
(
f
,
N
).
wait_for_finished
()
self
.
assertEqual
(
len
(
results
),
5
)
for
dt
in
results
:
self
.
assertTrue
(
dt
>=
0.19
,
dt
)
# XXX: libuv sometimes produces 0.19958
# XXX: libuv sometimes produces 0.19958
self
.
assertTimeWithinRange
(
dt
,
0.2
,
2.0
)
class
BaseSemaphoreTests
(
BaseTestCase
):
...
...
src/greentest/test___monkey_patching.py
View file @
689538e5
...
...
@@ -32,11 +32,11 @@ def TESTRUNNER(tests=None):
if
preferred_version
!=
version
:
util
.
log
(
'WARNING: The tests in %s/ are from version %s and your Python is %s'
,
directory
,
preferred_version
,
version
)
version_tests
=
glob
.
glob
(
'%s/test_*.py'
%
full_directory
)
version_tests
=
sorted
(
version_tests
)
if
not
tests
:
tests
=
glob
.
glob
(
'%s/test_*.py'
%
directory
)
version_tests
=
glob
.
glob
(
'%s/test_*.py'
%
full_directory
)
tests
=
sorted
(
tests
)
version_tests
=
sorted
(
version_tests
)
PYTHONPATH
=
(
os
.
getcwd
()
+
os
.
pathsep
+
get_absolute_pythonpath
()).
rstrip
(
':'
)
...
...
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