summaryrefslogtreecommitdiff
path: root/src/python/stdlib/test/test_future_builtins.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_future_builtins.py
parentd0d0d62bbcbb5c3417f8cba419c83bac192ea985 (diff)
downloadpowder-e46ef289e142982d7bd592faa7b0f85470364c01.zip
powder-e46ef289e142982d7bd592faa7b0f85470364c01.tar.gz
Remove Python console stuff
Diffstat (limited to 'src/python/stdlib/test/test_future_builtins.py')
-rw-r--r--src/python/stdlib/test/test_future_builtins.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/python/stdlib/test/test_future_builtins.py b/src/python/stdlib/test/test_future_builtins.py
deleted file mode 100644
index 96c3788..0000000
--- a/src/python/stdlib/test/test_future_builtins.py
+++ /dev/null
@@ -1,38 +0,0 @@
-import test.test_support, unittest
-
-# we're testing the behavior of these future builtins:
-from future_builtins import hex, oct, map, zip, filter
-
-class BuiltinTest(unittest.TestCase):
- def test_hex(self):
- self.assertEqual(hex(0), '0x0')
- self.assertEqual(hex(16), '0x10')
- self.assertEqual(hex(16L), '0x10')
- self.assertEqual(hex(-16), '-0x10')
- self.assertEqual(hex(-16L), '-0x10')
- self.assertRaises(TypeError, hex, {})
-
- def test_oct(self):
- self.assertEqual(oct(0), '0o0')
- self.assertEqual(oct(100), '0o144')
- self.assertEqual(oct(100L), '0o144')
- self.assertEqual(oct(-100), '-0o144')
- self.assertEqual(oct(-100L), '-0o144')
- self.assertRaises(TypeError, oct, ())
-
- def test_itertools(self):
- from itertools import imap, izip, ifilter
- # We will assume that the itertools functions work, so provided
- # that we've got identical coppies, we will work!
- self.assertEqual(map, imap)
- self.assertEqual(zip, izip)
- self.assertEqual(filter, ifilter)
- # Testing that filter(None, stuff) raises a warning lives in
- # test_py3kwarn.py
-
-
-def test_main(verbose=None):
- test.test_support.run_unittest(BuiltinTest)
-
-if __name__ == "__main__":
- test_main(verbose=True)