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
ac248521
Commit
ac248521
authored
Jan 18, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.pyc file hid that patched_tests_setup had moved.
parent
664e34da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/greentest/greentest/patched_tests_setup.py
src/greentest/greentest/patched_tests_setup.py
+2
-3
src/greentest/greentest/switching.py
src/greentest/greentest/switching.py
+1
-1
No files found.
src/greentest/greentest/patched_tests_setup.py
View file @
ac248521
...
@@ -642,8 +642,7 @@ if PYPY3:
...
@@ -642,8 +642,7 @@ if PYPY3:
if
PYPY
and
sys
.
pypy_version_info
[:
4
]
in
(
# pylint:disable=no-member
if
PYPY
and
sys
.
pypy_version_info
[:
4
]
in
(
# pylint:disable=no-member
(
5
,
8
,
0
,
'beta'
),
(
5
,
9
,
0
,
'beta'
),
(
5
,
8
,
0
,
'beta'
),
(
5
,
9
,
0
,
'beta'
),):
):
# 3.5 is beta. Hard to say what are real bugs in us vs real bugs in pypy.
# 3.5 is beta. Hard to say what are real bugs in us vs real bugs in pypy.
# For that reason, we pin these patches exactly to the version in use.
# For that reason, we pin these patches exactly to the version in use.
...
@@ -956,7 +955,7 @@ def disable_tests_in_source(source, filename):
...
@@ -956,7 +955,7 @@ def disable_tests_in_source(source, filename):
# If we do it on a def-by-def basis, we can break syntax
# If we do it on a def-by-def basis, we can break syntax
# if the function is already decorated
# if the function is already decorated
pattern
=
r'^import .*'
pattern
=
r'^import .*'
replacement
=
r'import patched_tests_setup as _GEVENT_PTS\n'
replacement
=
r'
from greentest
import patched_tests_setup as _GEVENT_PTS\n'
replacement
+=
r'import unittest as _GEVENT_UTS\n'
replacement
+=
r'import unittest as _GEVENT_UTS\n'
replacement
+=
r'\
g<
0>'
replacement
+=
r'\
g<
0>'
source
,
n
=
re
.
subn
(
pattern
,
replacement
,
source
,
1
,
re
.
MULTILINE
)
source
,
n
=
re
.
subn
(
pattern
,
replacement
,
source
,
1
,
re
.
MULTILINE
)
...
...
src/greentest/greentest/switching.py
View file @
ac248521
...
@@ -25,7 +25,7 @@ from gevent.hub import _get_hub
...
@@ -25,7 +25,7 @@ from gevent.hub import _get_hub
from
greentest.hub
import
QuietHub
from
greentest.hub
import
QuietHub
from
patched_tests_setup
import
get_switch_expected
from
greentest.
patched_tests_setup
import
get_switch_expected
def
wrap_switch_count_check
(
method
):
def
wrap_switch_count_check
(
method
):
@
wraps
(
method
)
@
wraps
(
method
)
...
...
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