Commit ea0ebeb5 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #940 from aisk/sys.subversion

make platform test pass
parents 6a3416d9 165d0fc5
# 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