diff options
author | Collin Winter <collinw@gmail.com> | 2007-04-24 04:09:52 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-04-24 04:09:52 (GMT) |
commit | d0bfa7454169606cfc0881c22e55c623d80c016c (patch) | |
tree | 6d8627c04c79ac8bc0da469037a5bf1200c4fbba /Lib | |
parent | 0fe118b9577e9d48af1a79880e5f4c739ba7c5c2 (diff) | |
download | cpython-d0bfa7454169606cfc0881c22e55c623d80c016c.zip cpython-d0bfa7454169606cfc0881c22e55c623d80c016c.tar.gz cpython-d0bfa7454169606cfc0881c22e55c623d80c016c.tar.bz2 |
Remove code that hasn't been called in years.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_zlib.py | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Lib/test/test_zlib.py b/Lib/test/test_zlib.py index 4440942..b8594de 100644 --- a/Lib/test/test_zlib.py +++ b/Lib/test/test_zlib.py @@ -3,22 +3,6 @@ from test import test_support import zlib import random -# print test_support.TESTFN - -def getbuf(): - # This was in the original. Avoid non-repeatable sources. - # Left here (unused) in case something wants to be done with it. - import imp - try: - t = imp.find_module('test_zlib') - file = t[0] - except ImportError: - file = open(__file__) - buf = file.read() * 8 - file.close() - return buf - - class ChecksumTestCase(unittest.TestCase): # checksum test cases @@ -461,21 +445,3 @@ def test_main(): if __name__ == "__main__": test_main() - -def test(tests=''): - if not tests: tests = 'o' - testcases = [] - if 'k' in tests: testcases.append(ChecksumTestCase) - if 'x' in tests: testcases.append(ExceptionTestCase) - if 'c' in tests: testcases.append(CompressTestCase) - if 'o' in tests: testcases.append(CompressObjectTestCase) - test_support.run_unittest(*testcases) - -if False: - import sys - sys.path.insert(1, '/Py23Src/python/dist/src/Lib/test') - import test_zlib as tz - ts, ut = tz.test_support, tz.unittest - su = ut.TestSuite() - su.addTest(ut.makeSuite(tz.CompressTestCase)) - ts.run_suite(su) |