Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
cd43a0f6
Commit
cd43a0f6
authored
Sep 08, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I think this test was in the wrong file
parent
2294c2a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
test/tests/binops_subclass.py
test/tests/binops_subclass.py
+10
-0
test/tests/defaults_test.py
test/tests/defaults_test.py
+0
-12
No files found.
test/tests/binops_subclass.py
View file @
cd43a0f6
...
@@ -39,3 +39,13 @@ add(A(), B())
...
@@ -39,3 +39,13 @@ add(A(), B())
add
(
A
(),
C
())
add
(
A
(),
C
())
add
(
B
(),
B
())
add
(
B
(),
B
())
add
(
B
(),
C
())
add
(
B
(),
C
())
class
Int
(
int
):
def
__add__
(
self
,
rhs
):
print
"Int.__add__"
,
rhs
return
int
.
__add__
(
self
,
rhs
)
def
__radd__
(
self
,
rhs
):
print
"Int.__radd__"
,
rhs
return
int
.
__radd__
(
self
,
rhs
)
print
sum
([
Int
(
2
)])
test/tests/defaults_test.py
View file @
cd43a0f6
# expected: fail
# - with statements
# Test for various defaults arguments in builtin functions:
# Test for various defaults arguments in builtin functions:
class
ExpectationFailedException
(
Exception
):
class
ExpectationFailedException
(
Exception
):
...
@@ -36,15 +33,6 @@ with expected_exception(KeyError):
...
@@ -36,15 +33,6 @@ with expected_exception(KeyError):
print
min
([
1
])
print
min
([
1
])
print
min
([
1
],
None
)
print
min
([
1
],
None
)
class
Int
(
int
):
def
__add__
(
self
,
rhs
):
print
"Int.__add__"
,
rhs
return
int
.
__add__
(
self
,
rhs
)
def
__radd__
(
self
,
rhs
):
print
"Int.__radd__"
,
rhs
return
int
.
__radd__
(
self
,
rhs
)
print
sum
([
Int
(
2
)])
with
expected_exception
(
AttributeError
):
with
expected_exception
(
AttributeError
):
print
getattr
(
object
(),
""
)
print
getattr
(
object
(),
""
)
print
getattr
(
object
(),
""
,
None
)
print
getattr
(
object
(),
""
,
None
)
...
...
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