mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Remove code that hasn't been called in years.
This commit is contained in:
		
							parent
							
								
									0fe118b957
								
							
						
					
					
						commit
						d0bfa74541
					
				
					 1 changed files with 0 additions and 34 deletions
				
			
		| 
						 | 
					@ -3,22 +3,6 @@
 | 
				
			||||||
import zlib
 | 
					import zlib
 | 
				
			||||||
import random
 | 
					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):
 | 
					class ChecksumTestCase(unittest.TestCase):
 | 
				
			||||||
    # checksum test cases
 | 
					    # checksum test cases
 | 
				
			||||||
| 
						 | 
					@ -461,21 +445,3 @@ def test_main():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if __name__ == "__main__":
 | 
					if __name__ == "__main__":
 | 
				
			||||||
    test_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)
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue