Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
152e9d58
Commit
152e9d58
authored
May 30, 2015
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:cython/cython
parents
c430314b
4a7e320c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
runtests.py
runtests.py
+5
-6
tests/run/asyncio_generators.srctree
tests/run/asyncio_generators.srctree
+3
-3
tests/run/module_init_error.srctree
tests/run/module_init_error.srctree
+1
-1
No files found.
runtests.py
View file @
152e9d58
...
@@ -1494,20 +1494,18 @@ class VersionDependencyExcluder:
...
@@ -1494,20 +1494,18 @@ class VersionDependencyExcluder:
return True
return True
return False
return False
class FileListExcluder:
class FileListExcluder:
def __init__(self, list_file, verbose=False):
def __init__(self, list_file, verbose=False):
self.verbose = verbose
self.verbose = verbose
self.excludes = {}
self.excludes = {}
self._list_file = list_file
self._list_file = os.path.relpath(list_file)
f = open(list_file)
with open(list_file) as f:
try:
for line in f:
for line in f.readlines():
line = line.strip()
line = line.strip()
if line and line[0] != '#':
if line and line[0] != '#':
self.excludes[line.split()[0]] = True
self.excludes[line.split()[0]] = True
finally:
f.close()
def __call__(self, testname, tags=None):
def __call__(self, testname, tags=None):
exclude = (testname in self.excludes
exclude = (testname in self.excludes
...
@@ -1517,6 +1515,7 @@ class FileListExcluder:
...
@@ -1517,6 +1515,7 @@ class FileListExcluder:
% (testname, self._list_file))
% (testname, self._list_file))
return exclude
return exclude
class TagsSelector:
class TagsSelector:
def __init__(self, tag, value):
def __init__(self, tag, value):
...
...
tests/run/asyncio_generators.srctree
View file @
152e9d58
...
@@ -75,14 +75,14 @@ def runloop(task):
...
@@ -75,14 +75,14 @@ def runloop(task):
result = loop.run_until_complete(task())
result = loop.run_until_complete(task())
assert 3 == result, result
assert 3 == result, result
import import_asyncio # patches Generator into ABCs if
necessary
import import_asyncio # patches Generator into ABCs if
missing
runloop(import_asyncio.wait3) # 1a)
runloop(import_asyncio.wait3) # 1a)
import from_asyncio_import
import from_asyncio_import
runloop(from_asyncio_import.wait3) # 1b)
runloop(from_asyncio_import.wait3) # 1b)
import async_def # patches Awaitable/Coroutine into ABCs if
necessary
import async_def # patches Awaitable/Coroutine into ABCs if
missing
if ASYNCIO_SUPPORTS_COROUTINE:
if ASYNCIO_SUPPORTS_COROUTINE:
runloop(async_def.wait3)
# 1c)
runloop(async_def.wait3) # 1c)
runloop(from_asyncio_import.wait3) # 2a)
runloop(from_asyncio_import.wait3) # 2a)
runloop(import_asyncio.wait3) # 2b)
runloop(import_asyncio.wait3) # 2b)
...
...
tests/run/module_init_error.srctree
View file @
152e9d58
...
@@ -23,7 +23,7 @@ def try_import():
...
@@ -23,7 +23,7 @@ def try_import():
else:
else:
raise RuntimeError("expected ValueError from import")
raise RuntimeError("expected ValueError from import")
if
sys.version_info >= (3, 3
):
if
(3, 3) <= sys.version_info < (3, 5
):
assert 'fail_in_init' not in sys.modules
assert 'fail_in_init' not in sys.modules
elif 'fail_in_init' in sys.modules:
elif 'fail_in_init' in sys.modules:
try:
try:
...
...
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