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
Xavier Thompson
cython
Commits
58e30448
Commit
58e30448
authored
Jul 31, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3.3 test fix
parent
dc1e8da9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/run/tp_new.pyx
tests/run/tp_new.pyx
+2
-2
No files found.
tests/run/tp_new.pyx
View file @
58e30448
...
@@ -67,9 +67,9 @@ def make_new_builtin():
...
@@ -67,9 +67,9 @@ def make_new_builtin():
@
cython
.
test_fail_if_path_exists
(
'//SimpleCallNode/AttributeNode'
)
@
cython
.
test_fail_if_path_exists
(
'//SimpleCallNode/AttributeNode'
)
def
make_new_none
(
type
t
=
None
):
def
make_new_none
(
type
t
=
None
):
"""
"""
>>>
isinstance(make_new_none(), MyType)
>>>
make_new_none() # doctest: +ELLIPSIS
Traceback (most recent call last):
Traceback (most recent call last):
TypeError:
object
.__new__(X): X is not a type object (NoneType)
TypeError:
..
.__new__(X): X is not a type object (NoneType)
"""
"""
m
=
t
.
__new__
(
t
)
m
=
t
.
__new__
(
t
)
return
m
return
m
...
...
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