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
165d0fc5
Commit
165d0fc5
authored
Sep 28, 2015
by
asaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make `test_platform` pass
parent
ac69cfef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
from_cpython/Lib/test/test_platform.py
from_cpython/Lib/test/test_platform.py
+0
-1
src/runtime/builtin_modules/sys.cpp
src/runtime/builtin_modules/sys.cpp
+1
-0
test/tests/sys_test.py
test/tests/sys_test.py
+2
-0
No files found.
from_cpython/Lib/test/test_platform.py
View file @
165d0fc5
# expected: fail
import
sys
import
os
import
unittest
...
...
src/runtime/builtin_modules/sys.cpp
View file @
165d0fc5
...
...
@@ -649,6 +649,7 @@ void setupSys() {
sys_module
->
giveAttr
(
"version"
,
boxString
(
generateVersionString
()));
sys_module
->
giveAttr
(
"hexversion"
,
boxInt
(
PY_VERSION_HEX
));
sys_module
->
giveAttr
(
"subversion"
,
BoxedTuple
::
create
({
boxString
(
"Pyston"
),
boxString
(
""
),
boxString
(
""
)
}));
sys_module
->
giveAttr
(
"maxint"
,
boxInt
(
PYSTON_INT_MAX
));
sys_module
->
giveAttr
(
"maxsize"
,
boxInt
(
PY_SSIZE_T_MAX
));
...
...
test/tests/sys_test.py
View file @
165d0fc5
...
...
@@ -11,6 +11,8 @@ print type(sys.maxsize)
print
sys
.
stdout
is
sys
.
__stdout__
print
sys
.
stderr
is
sys
.
__stderr__
print
sys
.
stdin
is
sys
.
__stdin__
print
type
(
sys
.
subversion
)
print
len
(
sys
.
subversion
)
try
:
1
/
0
...
...
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