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
Boxiang Sun
cython
Commits
ac984421
Commit
ac984421
authored
Feb 04, 2011
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'release 0.14.1'
Conflicts: Cython/__init__.py
parents
1f735bf4
1b0c3ae8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
Cython/__init__.py
Cython/__init__.py
+1
-1
runtests.py
runtests.py
+11
-7
No files found.
Cython/__init__.py
View file @
ac984421
__version__
=
"0.14.1
rc3
"
__version__
=
"0.14.1"
# Void cython.* directives (for case insensitive operating systems).
# Void cython.* directives (for case insensitive operating systems).
from
Cython.Shadow
import
*
from
Cython.Shadow
import
*
runtests.py
View file @
ac984421
...
@@ -177,7 +177,8 @@ class TestBuilder(object):
...
@@ -177,7 +177,8 @@ class TestBuilder(object):
self
.
handle_directory
(
path
,
filename
))
self
.
handle_directory
(
path
,
filename
))
if
sys
.
platform
not
in
[
'win32'
]
and
sys
.
version_info
[
0
]
<
3
:
if
sys
.
platform
not
in
[
'win32'
]
and
sys
.
version_info
[
0
]
<
3
:
# Non-Windows makefile, can't run Cython under Py3.
# Non-Windows makefile, can't run Cython under Py3.
if
[
1
for
selector
in
self
.
selectors
if
selector
(
"embedded"
)]:
if
[
1
for
selector
in
self
.
selectors
if
selector
(
"embedded"
)]
\
and
not
[
1
for
selector
in
self
.
exclude_selectors
if
selector
(
"embedded"
)]:
suite
.
addTest
(
unittest
.
makeSuite
(
EmbedTest
))
suite
.
addTest
(
unittest
.
makeSuite
(
EmbedTest
))
return
suite
return
suite
...
@@ -194,7 +195,10 @@ class TestBuilder(object):
...
@@ -194,7 +195,10 @@ class TestBuilder(object):
if
context
==
"build"
and
filename
.
endswith
(
".srctree"
):
if
context
==
"build"
and
filename
.
endswith
(
".srctree"
):
if
not
[
1
for
match
in
self
.
selectors
if
match
(
filename
)
]:
if
not
[
1
for
match
in
self
.
selectors
if
match
(
filename
)
]:
continue
continue
suite
.
addTest
(
EndToEndTest
(
filename
,
workdir
,
self
.
cleanup_workdir
))
if
self
.
exclude_selectors
:
if
[
1
for
match
in
self
.
exclude_selectors
if
match
(
filename
)]:
continue
suite
.
addTest
(
EndToEndTest
(
os
.
path
.
join
(
path
,
filename
),
workdir
,
self
.
cleanup_workdir
))
continue
continue
if
not
(
filename
.
endswith
(
".pyx"
)
or
filename
.
endswith
(
".py"
)):
if
not
(
filename
.
endswith
(
".pyx"
)
or
filename
.
endswith
(
".py"
)):
continue
continue
...
@@ -786,8 +790,9 @@ class EndToEndTest(unittest.TestCase):
...
@@ -786,8 +790,9 @@ class EndToEndTest(unittest.TestCase):
cython_root
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
cython_root
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
def
__init__
(
self
,
treefile
,
workdir
,
cleanup_workdir
=
True
):
def
__init__
(
self
,
treefile
,
workdir
,
cleanup_workdir
=
True
):
self
.
name
=
os
.
path
.
splitext
(
os
.
path
.
basename
(
treefile
))[
0
]
self
.
treefile
=
treefile
self
.
treefile
=
treefile
self
.
workdir
=
os
.
path
.
join
(
workdir
,
os
.
path
.
splitext
(
treefile
)[
0
]
)
self
.
workdir
=
os
.
path
.
join
(
workdir
,
self
.
name
)
self
.
cleanup_workdir
=
cleanup_workdir
self
.
cleanup_workdir
=
cleanup_workdir
cython_syspath
=
self
.
cython_root
cython_syspath
=
self
.
cython_root
for
path
in
sys
.
path
[::
-
1
]:
for
path
in
sys
.
path
[::
-
1
]:
...
@@ -800,12 +805,11 @@ class EndToEndTest(unittest.TestCase):
...
@@ -800,12 +805,11 @@ class EndToEndTest(unittest.TestCase):
unittest
.
TestCase
.
__init__
(
self
)
unittest
.
TestCase
.
__init__
(
self
)
def
shortDescription
(
self
):
def
shortDescription
(
self
):
return
"End-to-end %s"
%
self
.
treefil
e
return
"End-to-end %s"
%
self
.
nam
e
def
setUp
(
self
):
def
setUp
(
self
):
from
Cython.TestUtils
import
unpack_source_tree
from
Cython.TestUtils
import
unpack_source_tree
_
,
self
.
commands
=
unpack_source_tree
(
_
,
self
.
commands
=
unpack_source_tree
(
self
.
treefile
,
self
.
workdir
)
os
.
path
.
join
(
'tests'
,
'build'
,
self
.
treefile
),
self
.
workdir
)
self
.
old_dir
=
os
.
getcwd
()
self
.
old_dir
=
os
.
getcwd
()
os
.
chdir
(
self
.
workdir
)
os
.
chdir
(
self
.
workdir
)
if
self
.
workdir
not
in
sys
.
path
:
if
self
.
workdir
not
in
sys
.
path
:
...
@@ -1123,7 +1127,7 @@ def main():
...
@@ -1123,7 +1127,7 @@ def main():
# RUN ALL TESTS!
# RUN ALL TESTS!
UNITTEST_MODULE
=
"Cython"
UNITTEST_MODULE
=
"Cython"
UNITTEST_ROOT
=
os
.
path
.
join
(
os
.
getcwd
(
),
UNITTEST_MODULE
)
UNITTEST_ROOT
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
UNITTEST_MODULE
)
if
WITH_CYTHON
:
if
WITH_CYTHON
:
if
os
.
path
.
exists
(
WORKDIR
):
if
os
.
path
.
exists
(
WORKDIR
):
for
path
in
os
.
listdir
(
WORKDIR
):
for
path
in
os
.
listdir
(
WORKDIR
):
...
...
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