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
58bbbc39
Commit
58bbbc39
authored
Apr 02, 2011
by
Haoyu Bai
Committed by
Robert Bradshaw
Apr 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better way to fool Python in the tests (now works in 2.5)
parent
95916a23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tests/run/relativeimport_T542.pyx
tests/run/relativeimport_T542.pyx
+2
-2
tests/run/relativeimport_star_T542.pyx
tests/run/relativeimport_star_T542.pyx
+1
-1
No files found.
tests/run/relativeimport_T542.pyx
View file @
58bbbc39
...
...
@@ -2,9 +2,9 @@
import
sys
# fool Python we are in distutils
if
sys
.
version_info
>=
(
3
,):
__
package__
=
'distutils
'
__
name__
=
'distutils.cytest_relativeimport_T542
'
else
:
__
package__
=
b'distutils
'
__
name__
=
b'distutils.cytest_relativeimport_T542
'
from
distutils
import
cmd
,
core
,
version
from
.core
import
*
...
...
tests/run/relativeimport_star_T542.pyx
View file @
58bbbc39
from
distutils
import
core
,
version
__
package__
=
'distutils.core
'
# fool Python we are in distutils
__
name__
=
'distutils.core.cytest_relativeimport_T542
'
# fool Python we are in distutils
from
.
import
*
__doc__
=
"""
...
...
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