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
1593a824
Commit
1593a824
authored
Jul 31, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more test fixes
parent
58e30448
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/run/tp_new.pyx
tests/run/tp_new.pyx
+3
-3
No files found.
tests/run/tp_new.pyx
View file @
1593a824
...
@@ -120,7 +120,7 @@ def make_new_args(type t1=None, type t2=None):
...
@@ -120,7 +120,7 @@ def make_new_args(type t1=None, type t2=None):
@
cython
.
test_fail_if_path_exists
(
'//PythonCapiCallNode'
)
@
cython
.
test_fail_if_path_exists
(
'//PythonCapiCallNode'
)
def
make_new_none_typed
(
tuple
t
=
None
):
def
make_new_none_typed
(
tuple
t
=
None
):
"""
"""
>>>
isinstance(make_new_none(), MyType
)
>>>
make_new_none_typed(
)
Traceback (most recent call last):
Traceback (most recent call last):
TypeError: object.__new__(X): X is not a type object (NoneType)
TypeError: object.__new__(X): X is not a type object (NoneType)
"""
"""
...
@@ -131,9 +131,9 @@ def make_new_none_typed(tuple t=None):
...
@@ -131,9 +131,9 @@ def make_new_none_typed(tuple t=None):
@
cython
.
test_fail_if_path_exists
(
'//PythonCapiCallNode'
)
@
cython
.
test_fail_if_path_exists
(
'//PythonCapiCallNode'
)
def
make_new_untyped
(
t
):
def
make_new_untyped
(
t
):
"""
"""
>>> make_new_untyped(None)
>>> make_new_untyped(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