summaryrefslogtreecommitdiff
path: root/src/python/stdlib/test/test_bigaddrspace.py
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-10-26 13:50:50 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-10-26 13:50:50 (GMT)
commite46ef289e142982d7bd592faa7b0f85470364c01 (patch)
treecda253e03788f7db0a7cdcd05662f66b4455e298 /src/python/stdlib/test/test_bigaddrspace.py
parentd0d0d62bbcbb5c3417f8cba419c83bac192ea985 (diff)
downloadpowder-e46ef289e142982d7bd592faa7b0f85470364c01.zip
powder-e46ef289e142982d7bd592faa7b0f85470364c01.tar.gz
Remove Python console stuff
Diffstat (limited to 'src/python/stdlib/test/test_bigaddrspace.py')
-rw-r--r--src/python/stdlib/test/test_bigaddrspace.py46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/python/stdlib/test/test_bigaddrspace.py b/src/python/stdlib/test/test_bigaddrspace.py
deleted file mode 100644
index db19a53..0000000
--- a/src/python/stdlib/test/test_bigaddrspace.py
+++ /dev/null
@@ -1,46 +0,0 @@
-from test import test_support
-from test.test_support import bigaddrspacetest, MAX_Py_ssize_t
-
-import unittest
-import operator
-import sys
-
-
-class StrTest(unittest.TestCase):
-
- @bigaddrspacetest
- def test_concat(self):
- s1 = 'x' * MAX_Py_ssize_t
- self.assertRaises(OverflowError, operator.add, s1, '?')
-
- @bigaddrspacetest
- def test_optimized_concat(self):
- x = 'x' * MAX_Py_ssize_t
- try:
- x = x + '?' # this statement uses a fast path in ceval.c
- except OverflowError:
- pass
- else:
- self.fail("should have raised OverflowError")
- try:
- x += '?' # this statement uses a fast path in ceval.c
- except OverflowError:
- pass
- else:
- self.fail("should have raised OverflowError")
- self.assertEqual(len(x), MAX_Py_ssize_t)
-
- ### the following test is pending a patch
- # (http://mail.python.org/pipermail/python-dev/2006-July/067774.html)
- #@bigaddrspacetest
- #def test_repeat(self):
- # self.assertRaises(OverflowError, operator.mul, 'x', MAX_Py_ssize_t + 1)
-
-
-def test_main():
- test_support.run_unittest(StrTest)
-
-if __name__ == '__main__':
- if len(sys.argv) > 1:
- test_support.set_memlimit(sys.argv[1])
- test_main()