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
ca03d568
Commit
ca03d568
authored
Dec 10, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cython.inline test
parent
ac6c463b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
Cython/Build/Inline.py
Cython/Build/Inline.py
+1
-1
Cython/Build/Tests/TestInline.py
Cython/Build/Tests/TestInline.py
+8
-0
No files found.
Cython/Build/Inline.py
View file @
ca03d568
...
...
@@ -92,7 +92,7 @@ def cython_inline(code,
get_type
=
lambda
x
:
'object'
code
,
literals
=
strip_string_literals
(
code
)
code
=
strip_common_indent
(
code
)
ctx
=
Context
(
include_dirs
,
default_options
)
ctx
=
Context
(
cython_
include_dirs
,
default_options
)
if
locals
is
None
:
locals
=
inspect
.
currentframe
().
f_back
.
f_back
.
f_locals
if
globals
is
None
:
...
...
Cython/Build/Tests/TestInline.py
0 → 100644
View file @
ca03d568
from
Cython.Shadow
import
inline
from
Cython.TestUtils
import
CythonTest
class
TestStripLiterals
(
CythonTest
):
def
test_inline
(
self
):
self
.
assertEquals
(
inline
(
"return 1+2"
),
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