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
f0755588
Commit
f0755588
authored
Jul 11, 2016
by
Kevin Modzelewski
Committed by
GitHub
Jul 11, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1292 from kmod/scipy
Some scipy fixes
parents
7044c24c
229ef9b0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
3 deletions
+36
-3
src/codegen/irgen/refcounts.cpp
src/codegen/irgen/refcounts.cpp
+4
-0
src/core/cfg.cpp
src/core/cfg.cpp
+4
-2
test/extra/pyopenssl_test.py
test/extra/pyopenssl_test.py
+2
-1
test/tests/test_package/import_target.py
test/tests/test_package/import_target.py
+26
-0
No files found.
src/codegen/irgen/refcounts.cpp
View file @
f0755588
...
...
@@ -77,6 +77,10 @@ llvm::Value* RefcountTracker::setType(llvm::Value* v, RefType reftype) {
assert
(
var
.
reftype
==
reftype
||
var
.
reftype
==
RefType
::
UNKNOWN
);
var
.
reftype
=
reftype
;
if
(
llvm
::
isa
<
ConstantPointerNull
>
(
v
))
var
.
nullable
=
true
;
return
v
;
}
...
...
src/core/cfg.cpp
View file @
f0755588
...
...
@@ -1700,8 +1700,10 @@ public:
l
=
r
+
1
;
continue
;
}
pushAssign
(
tmpname
,
new
AST_Attribute
(
makeLoad
(
tmpname
,
node
,
true
),
AST_TYPE
::
Load
,
internString
(
a
->
name
.
s
().
substr
(
l
,
r
-
l
))));
auto
attr
=
new
AST_Attribute
(
makeLoad
(
tmpname
,
node
,
true
),
AST_TYPE
::
Load
,
internString
(
a
->
name
.
s
().
substr
(
l
,
r
-
l
)));
attr
->
lineno
=
import
->
lineno
;
pushAssign
(
tmpname
,
attr
);
l
=
r
+
1
;
}
while
(
l
<
a
->
name
.
s
().
size
());
pushAssign
(
a
->
asname
,
makeLoad
(
tmpname
,
node
,
true
));
...
...
test/extra/pyopenssl_test.py
View file @
f0755588
...
...
@@ -20,8 +20,9 @@ subprocess.check_call(["sed", "-i", 's/\\(def test_digest.*\\)/\\1\\n ret
# This particular test is bad; it fails if run close to a second-boundary
# https://github.com/pyca/pyopenssl/issues/266
subprocess
.
check_call
([
"sed"
,
"-i"
,
's/
\
\
(def test_export_te
s
t.*
\
\
)/
\
\
1
\
\
n return/'
,
subprocess
.
check_call
([
"sed"
,
"-i"
,
's/
\
\
(def test_export_te
x
t.*
\
\
)/
\
\
1
\
\
n return/'
,
os
.
path
.
join
(
PYOPENSSL_DIR
,
"test"
,
"test_crypto.py"
)])
print
os
.
path
.
join
(
PYOPENSSL_DIR
,
"test"
,
"test_crypto.py"
)
expected
=
[{
'ran'
:
438
}]
run_test
([
NOSETESTS_EXE
],
cwd
=
PYOPENSSL_DIR
,
expected
=
expected
)
test/tests/test_package/import_target.py
View file @
f0755588
print
"running test_package.import_target"
# Since we are currently importing test_package.import_target, this
# import will succeed (return directly from sys.modules), even though
# test_package will not have the 'import_target' attribute yet
import
test_package.import_target
try
:
print
test_package
.
import_target
assert
0
except
AttributeError
:
pass
try
:
print
getattr
(
test_package
,
'import_target'
)
assert
0
except
AttributeError
:
pass
# You can do 'import test_package.import_target', but adding an asname will cause an exception:
try
:
import
test_package.import_target
as
i
assert
0
i
except
AttributeError
:
pass
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