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
50c43972
Commit
50c43972
authored
Apr 10, 2016
by
Kevin Modzelewski
Committed by
Kevin Modzelewski
Apr 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
These tests were already working
parent
a0805626
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
7 deletions
+2
-7
src/runtime/dict.cpp
src/runtime/dict.cpp
+0
-1
test/tests/collections_test.py
test/tests/collections_test.py
+0
-1
test/tests/dict_subclassing.py
test/tests/dict_subclassing.py
+0
-1
test/tests/vregs_only_introspection.py
test/tests/vregs_only_introspection.py
+2
-4
No files found.
src/runtime/dict.cpp
View file @
50c43972
...
@@ -255,7 +255,6 @@ template <enum ExceptionStyle S> Box* dictGetitem(BoxedDict* self, Box* k) noexc
...
@@ -255,7 +255,6 @@ template <enum ExceptionStyle S> Box* dictGetitem(BoxedDict* self, Box* k) noexc
// Special-case defaultdict, assuming that it's the main time we will actually hit this.
// Special-case defaultdict, assuming that it's the main time we will actually hit this.
// We could just use a single runtime IC here, or have a small cache that maps type->runtimeic.
// We could just use a single runtime IC here, or have a small cache that maps type->runtimeic.
// Or use a polymorphic runtime ic.
// Or use a polymorphic runtime ic.
assert
(
0
&&
"check refcounting"
);
static
BoxedClass
*
defaultdict_cls
=
NULL
;
static
BoxedClass
*
defaultdict_cls
=
NULL
;
static
CallattrIC
defaultdict_ic
;
static
CallattrIC
defaultdict_ic
;
if
(
defaultdict_cls
==
NULL
&&
strcmp
(
self
->
cls
->
tp_name
,
"collections.defaultdict"
)
==
0
)
{
if
(
defaultdict_cls
==
NULL
&&
strcmp
(
self
->
cls
->
tp_name
,
"collections.defaultdict"
)
==
0
)
{
...
...
test/tests/collections_test.py
View file @
50c43972
# expected: reffail
import
collections
import
collections
o
=
collections
.
OrderedDict
()
o
=
collections
.
OrderedDict
()
...
...
test/tests/dict_subclassing.py
View file @
50c43972
# expected: reffail
class
MyDict
(
dict
):
class
MyDict
(
dict
):
pass
pass
...
...
test/tests/vregs_only_introspection.py
View file @
50c43972
# expected: reffail
import
sys
import
sys
def
f
():
def
f
():
# By the time of the f_locals call, x will only be alive because
# By the time of the f_locals call, x will only be alive because
...
@@ -6,7 +5,7 @@ def f():
...
@@ -6,7 +5,7 @@ def f():
x
=
100.0
**
10
x
=
100.0
**
10
for
i
in
xrange
(
10000
):
for
i
in
xrange
(
10000
):
200.0
*
200.0
200.0
*
200.0
print
s
ys
.
_getframe
(
0
).
f_locals
print
s
orted
(
sys
.
_getframe
(
0
).
f_locals
.
items
())
# Avoid testing the lifetime of i by keeping it alive here:
# Avoid testing the lifetime of i by keeping it alive here:
print
i
print
i
...
@@ -18,9 +17,8 @@ def f():
...
@@ -18,9 +17,8 @@ def f():
y
=
100
*
100
y
=
100
*
100
for
i
in
xrange
(
10000
):
for
i
in
xrange
(
10000
):
200
*
200
200
*
200
print
s
ys
.
_getframe
(
0
).
f_locals
print
s
orted
(
sys
.
_getframe
(
0
).
f_locals
.
items
())
# Avoid testing the lifetime of i by keeping it alive here:
# Avoid testing the lifetime of i by keeping it alive here:
print
i
print
i
trap
()
f
()
f
()
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