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
Kirill Smelkov
cython
Commits
93242f95
Commit
93242f95
authored
Nov 11, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case for #454
parent
83f1ea66
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
tests/bugs.txt
tests/bugs.txt
+2
-1
tests/run/tp_new_T454.pyx
tests/run/tp_new_T454.pyx
+16
-0
No files found.
tests/bugs.txt
View file @
93242f95
# This file contains tests corresponding to
of
unresolved bugs,
# This file contains tests corresponding to unresolved bugs,
# which will be skipped in the normal testing run.
# which will be skipped in the normal testing run.
methodmangling_T5
methodmangling_T5
...
@@ -6,3 +6,4 @@ class_attribute_init_values_T18
...
@@ -6,3 +6,4 @@ class_attribute_init_values_T18
numpy_ValueError_T172
numpy_ValueError_T172
unsignedbehaviour_T184
unsignedbehaviour_T184
missing_baseclass_in_predecl_T262
missing_baseclass_in_predecl_T262
tp_new_T454
tests/run/tp_new_T454.pyx
0 → 100644
View file @
93242f95
cimport
cython
cdef
class
TypeWithFactory
:
@
cython
.
test_assert_path_exists
(
'//PythonCapiCallNode'
)
@
cython
.
test_fail_if_path_exists
(
'//SimpleCallNode/AttributeNode'
)
@
classmethod
def
new
(
cls
):
return
cls
.
__new__
(
cls
)
def
make_new_factory
():
"""
>>> isinstance(make_new_factory(), TypeWithFactory)
True
"""
return
TypeWithFactory
.
new
()
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