Commit 165d0fc5 authored by asaka's avatar asaka

make `test_platform` pass

parent ac69cfef
# expected: fail
import sys
import os
import unittest
......
......@@ -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));
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment