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
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
Gwenaël Samain
cython
Commits
166d2a51
Commit
166d2a51
authored
Aug 12, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
work around missing unittest helper in test_grammar.py for older CPython versions
parent
ce0ffa18
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
tests/run/test_grammar.py
tests/run/test_grammar.py
+11
-0
No files found.
tests/run/test_grammar.py
View file @
166d2a51
...
...
@@ -1204,6 +1204,17 @@ class GrammarTests(unittest.TestCase):
GrammarTests
.
assertRaisesRegex
=
lambda
self
,
exc
,
msg
:
self
.
assertRaises
(
exc
)
if
not
hasattr
(
unittest
.
TestCase
,
'subTest'
):
@
contextlib
.
contextmanager
def
subTest
(
self
,
code
,
**
kwargs
):
try
:
yield
except
Exception
:
print
(
code
)
raise
GrammarTests
.
subTest
=
subTest
# FIXME: disabling some tests for real Cython bugs here
del
GrammarTests
.
test_comprehension_specials
# iterable pre-calculation in generator expression
del
GrammarTests
.
test_funcdef
# annotation mangling
...
...
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