PATH:
usr
/
lib64
/
python2.7
/
test
import unittest from test import test_support from itertools import * import weakref from decimal import Decimal from fractions import Fraction import sys import operator import random import copy import pickle from functools import reduce try: import threading except ImportError: threading = None maxsize = test_support.MAX_Py_ssize_t minsize = -maxsize-1 def onearg(x): 'Test function of one argument' return 2*x def errfunc(*args): 'Test function that raises an error' raise ValueError def gen3(): 'Non-restartable source sequence' for i in (0, 1, 2): yield i def isEven(x): 'Test predicate' return x%2==0 def isOdd(x): 'Test predicate' return x%2==1 class StopNow: 'Class emulating an empty iterable.' def __iter__(self): return self def next(self): raise StopIteration def take(n, seq): 'Convenience function for partially consuming a long of infinite iterable' return list(islice(seq, n)) def prod(iterable): return reduce(operator.mul, iterable, 1) def fact(n): 'Factorial' return prod(range(1, n+1)) class TestBasicOps(unittest.TestCase): def test_chain(self): def chain2(*iterables): 'Pure python version in the docs' for it in iterables: for element in it: yield element for c in (chain, chain2): self.assertEqual(list(c('abc', 'def')), list('abcdef')) self.assertEqual(list(c('abc')), list('abc')) self.assertEqual(list(c('')), []) self.assertEqual(take(4, c('abc', 'def')), list('abcd')) self.assertRaises(TypeError, list,c(2, 3)) def test_chain_from_iterable(self): self.assertEqual(list(chain.from_iterable(['abc', 'def'])), list('abcdef')) self.assertEqual(list(chain.from_iterable(['abc'])), list('abc')) self.assertEqual(list(chain.from_iterable([''])), []) self.assertEqual(take(4, chain.from_iterable(['abc', 'def'])), list('abcd')) self.assertRaises(TypeError, list, chain.from_iterable([2, 3])) def test_combinations(self): self.assertRaises(TypeError, combinations, 'abc') # missing r argument self.assertRaises(TypeError, combinations, 'abc', 2, 1) # too many arguments self.assertRaises(TypeError, combinations, None) # pool is not iterable self.assertRaises(ValueError, combinations, 'abc', -2) # r is negative self.assertEqual(list(combinations('abc', 32)), []) # r > n self.assertEqual(list(combinations(range(4), 3)), [(0,1,2), (0,1,3), (0,2,3), (1,2,3)]) def combinations1(iterable, r): 'Pure python version shown in the docs' pool = tuple(iterable) n = len(pool) if r > n: return indices = range(r) yield tuple(pool[i] for i in indices) while 1: for i in reversed(range(r)): if indices[i] != i + n - r: break else: return indices[i] += 1 for j in range(i+1, r): indices[j] = indices[j-1] + 1 yield tuple(pool[i] for i in indices) def combinations2(iterable, r): 'Pure python version shown in the docs' pool = tuple(iterable) n = len(pool) for indices in permutations(range(n), r): if sorted(indices) == list(indices): yield tuple(pool[i] for i in indices) def combinations3(iterable, r): 'Pure python version from cwr()' pool = tuple(iterable) n = len(pool) for indices in combinations_with_replacement(range(n), r): if len(set(indices)) == r: yield tuple(pool[i] for i in indices) for n in range(7): values = [5*x-12 for x in range(n)] for r in range(n+2): result = list(combinations(values, r)) self.assertEqual(len(result), 0 if r>n else fact(n) // fact(r) // fact(n-r)) # right number of combs self.assertEqual(len(result), len(set(result))) # no repeats self.assertEqual(result, sorted(result)) # lexicographic order for c in result: self.assertEqual(len(c), r) # r-length combinations self.assertEqual(len(set(c)), r) # no duplicate elements self.assertEqual(list(c), sorted(c)) # keep original ordering self.assertTrue(all(e in values for e in c)) # elements taken from input iterable self.assertEqual(list(c), [e for e in values if e in c]) # comb is a subsequence of the input iterable self.assertEqual(result, list(combinations1(values, r))) # matches first pure python version self.assertEqual(result, list(combinations2(values, r))) # matches second pure python version self.assertEqual(result, list(combinations3(values, r))) # matches second pure python version @test_support.bigaddrspacetest def test_combinations_overflow(self): with self.assertRaises((OverflowError, MemoryError)): combinations("AA", 2**29) @test_support.impl_detail("tuple reuse is specific to CPython") def test_combinations_tuple_reuse(self): self.assertEqual(len(set(map(id, combinations('abcde', 3)))), 1) self.assertNotEqual(len(set(map(id, list(combinations('abcde', 3))))), 1) def test_combinations_with_replacement(self): cwr = combinations_with_replacement self.assertRaises(TypeError, cwr, 'abc') # missing r argument self.assertRaises(TypeError, cwr, 'abc', 2, 1) # too many arguments self.assertRaises(TypeError, cwr, None) # pool is not iterable self.assertRaises(ValueError, cwr, 'abc', -2) # r is negative self.assertEqual(list(cwr('ABC', 2)), [('A','A'), ('A','B'), ('A','C'), ('B','B'), ('B','C'), ('C','C')]) def cwr1(iterable, r): 'Pure python version shown in the docs' # number items returned: (n+r-1)! / r! / (n-1)! when n>0 pool = tuple(iterable) n = len(pool) if not n and r: return indices = [0] * r yield tuple(pool[i] for i in indices) while 1: for i in reversed(range(r)): if indices[i] != n - 1: break else: return indices[i:] = [indices[i] + 1] * (r - i) yield tuple(pool[i] for i in indices) def cwr2(iterable, r): 'Pure python version shown in the docs' pool = tuple(iterable) n = len(pool) for indices in product(range(n), repeat=r): if sorted(indices) == list(indices): yield tuple(pool[i] for i in indices) def numcombs(n, r): if not n: return 0 if r else 1 return fact(n+r-1) // fact(r) // fact(n-1) for n in range(7): values = [5*x-12 for x in range(n)] for r in range(n+2): result = list(cwr(values, r)) self.assertEqual(len(result), numcombs(n, r)) # right number of combs self.assertEqual(len(result), len(set(result))) # no repeats self.assertEqual(result, sorted(result)) # lexicographic order regular_combs = list(combinations(values, r)) # compare to combs without replacement if n == 0 or r <= 1: self.assertEqual(result, regular_combs) # cases that should be identical else: self.assertTrue(set(result) >= set(regular_combs)) # rest should be supersets of regular combs for c in result: self.assertEqual(len(c), r) # r-length combinations noruns = [k for k,v in groupby(c)] # combo without consecutive repeats self.assertEqual(len(noruns), len(set(noruns))) # no repeats other than consecutive self.assertEqual(list(c), sorted(c)) # keep original ordering self.assertTrue(all(e in values for e in c)) # elements taken from input iterable self.assertEqual(noruns, [e for e in values if e in c]) # comb is a subsequence of the input iterable self.assertEqual(result, list(cwr1(values, r))) # matches first pure python version self.assertEqual(result, list(cwr2(values, r))) # matches second pure python version @test_support.bigaddrspacetest def test_combinations_with_replacement_overflow(self): with self.assertRaises((OverflowError, MemoryError)): combinations_with_replacement("AA", 2**30) @test_support.impl_detail("tuple reuse is specific to CPython") def test_combinations_with_replacement_tuple_reuse(self): cwr = combinations_with_replacement self.assertEqual(len(set(map(id, cwr('abcde', 3)))), 1) self.assertNotEqual(len(set(map(id, list(cwr('abcde', 3))))), 1) def test_permutations(self): self.assertRaises(TypeError, permutations) # too few arguments self.assertRaises(TypeError, permutations, 'abc', 2, 1) # too many arguments self.assertRaises(TypeError, permutations, None) # pool is not iterable self.assertRaises(ValueError, permutations, 'abc', -2) # r is negative self.assertEqual(list(permutations('abc', 32)), []) # r > n self.assertRaises(TypeError, permutations, 'abc', 's') # r is not an int or None self.assertEqual(list(permutations(range(3), 2)), [(0,1), (0,2), (1,0), (1,2), (2,0), (2,1)]) def permutations1(iterable, r=None): 'Pure python version shown in the docs' pool = tuple(iterable) n = len(pool) r = n if r is None else r if r > n: return indices = range(n) cycles = range(n, n-r, -1) yield tuple(pool[i] for i in indices[:r]) while n: for i in reversed(range(r)): cycles[i] -= 1 if cycles[i] == 0: indices[i:] = indices[i+1:] + indices[i:i+1] cycles[i] = n - i else: j = cycles[i] indices[i], indices[-j] = indices[-j], indices[i] yield tuple(pool[i] for i in indices[:r]) break else: return def permutations2(iterable, r=None): 'Pure python version shown in the docs' pool = tuple(iterable) n = len(pool) r = n if r is None else r for indices in product(range(n), repeat=r): if len(set(indices)) == r: yield tuple(pool[i] for i in indices) for n in range(7): values = [5*x-12 for x in range(n)] for r in range(n+2): result = list(permutations(values, r)) self.assertEqual(len(result), 0 if r>n else fact(n) // fact(n-r)) # right number of perms self.assertEqual(len(result), len(set(result))) # no repeats self.assertEqual(result, sorted(result)) # lexicographic order for p in result: self.assertEqual(len(p), r) # r-length permutations self.assertEqual(len(set(p)), r) # no duplicate elements self.assertTrue(all(e in values for e in p)) # elements taken from input iterable self.assertEqual(result, list(permutations1(values, r))) # matches first pure python version self.assertEqual(result, list(permutations2(values, r))) # matches second pure python version if r == n: self.assertEqual(result, list(permutations(values, None))) # test r as None self.assertEqual(result, list(permutations(values))) # test default r @test_support.bigaddrspacetest def test_permutations_overflow(self): with self.assertRaises((OverflowError, MemoryError)): permutations("A", 2**30) @test_support.impl_detail("tuple reuse is specific to CPython") def test_permutations_tuple_reuse(self): self.assertEqual(len(set(map(id, permutations('abcde', 3)))), 1) self.assertNotEqual(len(set(map(id, list(permutations('abcde', 3))))), 1) def test_combinatorics(self): # Test relationships between product(), permutations(), # combinations() and combinations_with_replacement(). for n in range(6): s = 'ABCDEFG'[:n] for r in range(8): prod = list(product(s, repeat=r)) cwr = list(combinations_with_replacement(s, r)) perm = list(permutations(s, r)) comb = list(combinations(s, r)) # Check size self.assertEqual(len(prod), n**r) self.assertEqual(len(cwr), (fact(n+r-1) // fact(r) // fact(n-1)) if n else (not r)) self.assertEqual(len(perm), 0 if r>n else fact(n) // fact(n-r)) self.assertEqual(len(comb), 0 if r>n else fact(n) // fact(r) // fact(n-r)) # Check lexicographic order without repeated tuples self.assertEqual(prod, sorted(set(prod))) self.assertEqual(cwr, sorted(set(cwr))) self.assertEqual(perm, sorted(set(perm))) self.assertEqual(comb, sorted(set(comb))) # Check interrelationships self.assertEqual(cwr, [t for t in prod if sorted(t)==list(t)]) # cwr: prods which are sorted self.assertEqual(perm, [t for t in prod if len(set(t))==r]) # perm: prods with no dups self.assertEqual(comb, [t for t in perm if sorted(t)==list(t)]) # comb: perms that are sorted self.assertEqual(comb, [t for t in cwr if len(set(t))==r]) # comb: cwrs without dups self.assertEqual(comb, filter(set(cwr).__contains__, perm)) # comb: perm that is a cwr self.assertEqual(comb, filter(set(perm).__contains__, cwr)) # comb: cwr that is a perm self.assertEqual(comb, sorted(set(cwr) & set(perm))) # comb: both a cwr and a perm def test_compress(self): self.assertEqual(list(compress(data='ABCDEF', selectors=[1,0,1,0,1,1])), list('ACEF')) self.assertEqual(list(compress('ABCDEF', [1,0,1,0,1,1])), list('ACEF')) self.assertEqual(list(compress('ABCDEF', [0,0,0,0,0,0])), list('')) self.assertEqual(list(compress('ABCDEF', [1,1,1,1,1,1])), list('ABCDEF')) self.assertEqual(list(compress('ABCDEF', [1,0,1])), list('AC')) self.assertEqual(list(compress('ABC', [0,1,1,1,1,1])), list('BC')) n = 10000 data = chain.from_iterable(repeat(range(6), n)) selectors = chain.from_iterable(repeat((0, 1))) self.assertEqual(list(compress(data, selectors)), [1,3,5] * n) self.assertRaises(TypeError, compress, None, range(6)) # 1st arg not iterable self.assertRaises(TypeError, compress, range(6), None) # 2nd arg not iterable self.assertRaises(TypeError, compress, range(6)) # too few args self.assertRaises(TypeError, compress, range(6), None) # too many args def test_count(self): self.assertEqual(zip('abc',count()), [('a', 0), ('b', 1), ('c', 2)]) self.assertEqual(zip('abc',count(3)), [('a', 3), ('b', 4), ('c', 5)]) self.assertEqual(take(2, zip('abc',count(3))), [('a', 3), ('b', 4)]) self.assertEqual(take(2, zip('abc',count(-1))), [('a', -1), ('b', 0)]) self.assertEqual(take(2, zip('abc',count(-3))), [('a', -3), ('b', -2)]) self.assertRaises(TypeError, count, 2, 3, 4) self.assertRaises(TypeError, count, 'a') self.assertEqual(take(10, count(maxsize-5)), range(maxsize-5, maxsize+5)) self.assertEqual(take(10, count(-maxsize-5)), range(-maxsize-5, -maxsize+5)) self.assertEqual(take(3, count(3.25)), [3.25, 4.25, 5.25]) self.assertEqual(take(3, count(3.25-4j)), [3.25-4j, 4.25-4j, 5.25-4j]) self.assertEqual(take(3, count(Decimal('1.1'))), [Decimal('1.1'), Decimal('2.1'), Decimal('3.1')]) self.assertEqual(take(3, count(Fraction(2, 3))), [Fraction(2, 3), Fraction(5, 3), Fraction(8, 3)]) BIGINT = 1<<1000 self.assertEqual(take(3, count(BIGINT)), [BIGINT, BIGINT+1, BIGINT+2]) c = count(3) self.assertEqual(repr(c), 'count(3)') c.next() self.assertEqual(repr(c), 'count(4)') c = count(-9) self.assertEqual(repr(c), 'count(-9)') c.next() self.assertEqual(next(c), -8) self.assertEqual(repr(count(10.25)), 'count(10.25)') self.assertEqual(repr(count(10.0)), 'count(10.0)') self.assertEqual(type(next(count(10.0))), float) for i in (-sys.maxint-5, -sys.maxint+5 ,-10, -1, 0, 10, sys.maxint-5, sys.maxint+5): # Test repr (ignoring the L in longs) r1 = repr(count(i)).replace('L', '') r2 = 'count(%r)'.__mod__(i).replace('L', '') self.assertEqual(r1, r2) # check copy, deepcopy, pickle for value in -3, 3, sys.maxint-5, sys.maxint+5: c = count(value) self.assertEqual(next(copy.copy(c)), value) self.assertEqual(next(copy.deepcopy(c)), value) for proto in range(pickle.HIGHEST_PROTOCOL + 1): self.assertEqual(next(pickle.loads(pickle.dumps(c, proto))), value) def test_count_with_stride(self): self.assertEqual(zip('abc',count(2,3)), [('a', 2), ('b', 5), ('c', 8)]) self.assertEqual(zip('abc',count(start=2,step=3)), [('a', 2), ('b', 5), ('c', 8)]) self.assertEqual(zip('abc',count(step=-1)), [('a', 0), ('b', -1), ('c', -2)]) self.assertRaises(TypeError, count, 'a', 'b') self.assertEqual(zip('abc',count(2,0)), [('a', 2), ('b', 2), ('c', 2)]) self.assertEqual(zip('abc',count(2,1)), [('a', 2), ('b', 3), ('c', 4)]) self.assertEqual(zip('abc',count(2,3)), [('a', 2), ('b', 5), ('c', 8)]) self.assertEqual(zip('abc',count(2,1L)), [('a', 2), ('b', 3), ('c', 4)]) self.assertEqual(zip('abc',count(2,3L)), [('a', 2), ('b', 5), ('c', 8)]) self.assertEqual(take(20, count(maxsize-15, 3)), take(20, range(maxsize-15, maxsize+100, 3))) self.assertEqual(take(20, count(-maxsize-15, 3)), take(20, range(-maxsize-15,-maxsize+100, 3))) self.assertEqual(take(3, count(10, maxsize+5)), range(10, 10+3*(maxsize+5), maxsize+5)) self.assertEqual(take(3, count(2, 1.25)), [2, 3.25, 4.5]) self.assertEqual(take(3, count(2, 3.25-4j)), [2, 5.25-4j, 8.5-8j]) self.assertEqual(take(3, count(Decimal('1.1'), Decimal('.1'))), [Decimal('1.1'), Decimal('1.2'), Decimal('1.3')]) self.assertEqual(take(3, count(Fraction(2,3), Fraction(1,7))), [Fraction(2,3), Fraction(17,21), Fraction(20,21)]) BIGINT = 1<<1000 self.assertEqual(take(3, count(step=BIGINT)), [0, BIGINT, 2*BIGINT]) self.assertEqual(repr(take(3, count(10, 2.5))), repr([10, 12.5, 15.0])) c = count(3, 5) self.assertEqual(repr(c), 'count(3, 5)') c.next() self.assertEqual(repr(c), 'count(8, 5)') c = count(-9, 0) self.assertEqual(repr(c), 'count(-9, 0)') c.next() self.assertEqual(repr(c), 'count(-9, 0)') c = count(-9, -3) self.assertEqual(repr(c), 'count(-9, -3)') c.next() self.assertEqual(repr(c), 'count(-12, -3)') self.assertEqual(repr(c), 'count(-12, -3)') self.assertEqual(repr(count(10.5, 1.25)), 'count(10.5, 1.25)') self.assertEqual(repr(count(10.5, 1)), 'count(10.5)') # suppress step=1 when it's an int self.assertEqual(repr(count(10.5, 1.00)), 'count(10.5, 1.0)') # do show float values lilke 1.0 self.assertEqual(repr(count(10, 1.00)), 'count(10, 1.0)') c = count(10, 1.0) self.assertEqual(type(next(c)), int) self.assertEqual(type(next(c)), float) for i in (-sys.maxint-5, -sys.maxint+5 ,-10, -1, 0, 10, sys.maxint-5, sys.maxint+5): for j in (-sys.maxint-5, -sys.maxint+5 ,-10, -1, 0, 1, 10, sys.maxint-5, sys.maxint+5): # Test repr (ignoring the L in longs) r1 = repr(count(i, j)).replace('L', '') if j == 1: r2 = ('count(%r)' % i).replace('L', '') else: r2 = ('count(%r, %r)' % (i, j)).replace('L', '') self.assertEqual(r1, r2) def test_cycle(self): self.assertEqual(take(10, cycle('abc')), list('abcabcabca')) self.assertEqual(list(cycle('')), []) self.assertRaises(TypeError, cycle) self.assertRaises(TypeError, cycle, 5) self.assertEqual(list(islice(cycle(gen3()),10)), [0,1,2,0,1,2,0,1,2,0]) def test_groupby(self): # Check whether it accepts arguments correctly self.assertEqual([], list(groupby([]))) self.assertEqual([], list(groupby([], key=id))) self.assertRaises(TypeError, list, groupby('abc', [])) self.assertRaises(TypeError, groupby, None) self.assertRaises(TypeError, groupby, 'abc', lambda x:x, 10) # Check normal input s = [(0, 10, 20), (0, 11,21), (0,12,21), (1,13,21), (1,14,22), (2,15,22), (3,16,23), (3,17,23)] dup = [] for k, g in groupby(s, lambda r:r[0]): for elem in g: self.assertEqual(k, elem[0]) dup.append(elem) self.assertEqual(s, dup) # Check nested case dup = [] for k, g in groupby(s, lambda r:r[0]): for ik, ig in groupby(g, lambda r:r[2]): for elem in ig: self.assertEqual(k, elem[0]) self.assertEqual(ik, elem[2]) dup.append(elem) self.assertEqual(s, dup) # Check case where inner iterator is not used keys = [k for k, g in groupby(s, lambda r:r[0])] expectedkeys = set([r[0] for r in s]) self.assertEqual(set(keys), expectedkeys) self.assertEqual(len(keys), len(expectedkeys)) # Exercise pipes and filters style s = 'abracadabra' # sort s | uniq r = [k for k, g in groupby(sorted(s))] self.assertEqual(r, ['a', 'b', 'c', 'd', 'r']) # sort s | uniq -d r = [k for k, g in groupby(sorted(s)) if list(islice(g,1,2))] self.assertEqual(r, ['a', 'b', 'r']) # sort s | uniq -c r = [(len(list(g)), k) for k, g in groupby(sorted(s))] self.assertEqual(r, [(5, 'a'), (2, 'b'), (1, 'c'), (1, 'd'), (2, 'r')]) # sort s | uniq -c | sort -rn | head -3 r = sorted([(len(list(g)) , k) for k, g in groupby(sorted(s))], reverse=True)[:3] self.assertEqual(r, [(5, 'a'), (2, 'r'), (2, 'b')]) # iter.next failure class ExpectedError(Exception): pass def delayed_raise(n=0): for i in range(n): yield 'yo' raise ExpectedError def gulp(iterable, keyp=None, func=list): return [func(g) for k, g in groupby(iterable, keyp)] # iter.next failure on outer object self.assertRaises(ExpectedError, gulp, delayed_raise(0)) # iter.next failure on inner object self.assertRaises(ExpectedError, gulp, delayed_raise(1)) # __cmp__ failure class DummyCmp: def __cmp__(self, dst): raise ExpectedError s = [DummyCmp(), DummyCmp(), None] # __cmp__ failure on outer object self.assertRaises(ExpectedError, gulp, s, func=id) # __cmp__ failure on inner object self.assertRaises(ExpectedError, gulp, s) # keyfunc failure def keyfunc(obj): if keyfunc.skip > 0: keyfunc.skip -= 1 return obj else: raise ExpectedError # keyfunc failure on outer object keyfunc.skip = 0 self.assertRaises(ExpectedError, gulp, [None], keyfunc) keyfunc.skip = 1 self.assertRaises(ExpectedError, gulp, [None, None], keyfunc) def test_ifilter(self): self.assertEqual(list(ifilter(isEven, range(6))), [0,2,4]) self.assertEqual(list(ifilter(None, [0,1,0,2,0])), [1,2]) self.assertEqual(list(ifilter(bool, [0,1,0,2,0])), [1,2]) self.assertEqual(take(4, ifilter(isEven, count())), [0,2,4,6]) self.assertRaises(TypeError, ifilter) self.assertRaises(TypeError, ifilter, lambda x:x) self.assertRaises(TypeError, ifilter, lambda x:x, range(6), 7) self.assertRaises(TypeError, ifilter, isEven, 3) self.assertRaises(TypeError, ifilter(range(6), range(6)).next) def test_ifilterfalse(self): self.assertEqual(list(ifilterfalse(isEven, range(6))), [1,3,5]) self.assertEqual(list(ifilterfalse(None, [0,1,0,2,0])), [0,0,0]) self.assertEqual(list(ifilterfalse(bool, [0,1,0,2,0])), [0,0,0]) self.assertEqual(take(4, ifilterfalse(isEven, count())), [1,3,5,7]) self.assertRaises(TypeError, ifilterfalse) self.assertRaises(TypeError, ifilterfalse, lambda x:x) self.assertRaises(TypeError, ifilterfalse, lambda x:x, range(6), 7) self.assertRaises(TypeError, ifilterfalse, isEven, 3) self.assertRaises(TypeError, ifilterfalse(range(6), range(6)).next) def test_izip(self): ans = [(x,y) for x, y in izip('abc',count())] self.assertEqual(ans, [('a', 0), ('b', 1), ('c', 2)]) self.assertEqual(list(izip('abc', range(6))), zip('abc', range(6))) self.assertEqual(list(izip('abcdef', range(3))), zip('abcdef', range(3))) self.assertEqual(take(3,izip('abcdef', count())), zip('abcdef', range(3))) self.assertEqual(list(izip('abcdef')), zip('abcdef')) self.assertEqual(list(izip()), zip()) self.assertRaises(TypeError, izip, 3) self.assertRaises(TypeError, izip, range(3), 3) self.assertEqual([tuple(list(pair)) for pair in izip('abc', 'def')], zip('abc', 'def')) self.assertEqual([pair for pair in izip('abc', 'def')], zip('abc', 'def')) @test_support.impl_detail("tuple reuse is specific to CPython") def test_izip_tuple_reuse(self): ids = map(id, izip('abc', 'def')) self.assertEqual(min(ids), max(ids)) ids = map(id, list(izip('abc', 'def'))) self.assertEqual(len(dict.fromkeys(ids)), len(ids)) def test_iziplongest(self): for args in [ ['abc', range(6)], [range(6), 'abc'], [range(1000), range(2000,2100), range(3000,3050)], [range(1000), range(0), range(3000,3050), range(1200), range(1500)], [range(1000), range(0), range(3000,3050), range(1200), range(1500), range(0)], ]: # target = map(None, *args) <- this raises a py3k warning # this is the replacement: target = [tuple([arg[i] if i < len(arg) else None for arg in args]) for i in range(max(map(len, args)))] self.assertEqual(list(izip_longest(*args)), target) self.assertEqual(list(izip_longest(*args, **{})), target) target = [tuple((e is None and 'X' or e) for e in t) for t in target] # Replace None fills with 'X' self.assertEqual(list(izip_longest(*args, **dict(fillvalue='X'))), target) self.assertEqual(take(3,izip_longest('abcdef', count())), zip('abcdef', range(3))) # take 3 from infinite input self.assertEqual(list(izip_longest()), zip()) self.assertEqual(list(izip_longest([])), zip([])) self.assertEqual(list(izip_longest('abcdef')), zip('abcdef')) self.assertEqual(list(izip_longest('abc', 'defg', **{})), zip(list('abc') + [None], 'defg')) # empty keyword dict self.assertRaises(TypeError, izip_longest, 3) self.assertRaises(TypeError, izip_longest, range(3), 3) for stmt in [ "izip_longest('abc', fv=1)", "izip_longest('abc', fillvalue=1, bogus_keyword=None)", ]: try: eval(stmt, globals(), locals()) except TypeError: pass else: self.fail('Did not raise Type in: ' + stmt) self.assertEqual([tuple(list(pair)) for pair in izip_longest('abc', 'def')], zip('abc', 'def')) self.assertEqual([pair for pair in izip_longest('abc', 'def')], zip('abc', 'def')) @test_support.impl_detail("tuple reuse is specific to CPython") def test_izip_longest_tuple_reuse(self): ids = map(id, izip_longest('abc', 'def')) self.assertEqual(min(ids), max(ids)) ids = map(id, list(izip_longest('abc', 'def'))) self.assertEqual(len(dict.fromkeys(ids)), len(ids)) def test_bug_7244(self): class Repeater(object): # this class is similar to itertools.repeat def __init__(self, o, t, e): self.o = o self.t = int(t) self.e = e def __iter__(self): # its iterator is itself return self def next(self): if self.t > 0: self.t -= 1 return self.o else: raise self.e # Formerly this code in would fail in debug mode # with Undetected Error and Stop Iteration r1 = Repeater(1, 3, StopIteration) r2 = Repeater(2, 4, StopIteration) def run(r1, r2): result = [] for i, j in izip_longest(r1, r2, fillvalue=0): with test_support.captured_output('stdout'): print (i, j) result.append((i, j)) return result self.assertEqual(run(r1, r2), [(1,2), (1,2), (1,2), (0,2)]) # Formerly, the RuntimeError would be lost # and StopIteration would stop as expected r1 = Repeater(1, 3, RuntimeError) r2 = Repeater(2, 4, StopIteration) it = izip_longest(r1, r2, fillvalue=0) self.assertEqual(next(it), (1, 2)) self.assertEqual(next(it), (1, 2)) self.assertEqual(next(it), (1, 2)) self.assertRaises(RuntimeError, next, it) def test_product(self): for args, result in [ ([], [()]), # zero iterables (['ab'], [('a',), ('b',)]), # one iterable ([range(2), range(3)], [(0,0), (0,1), (0,2), (1,0), (1,1), (1,2)]), # two iterables ([range(0), range(2), range(3)], []), # first iterable with zero length ([range(2), range(0), range(3)], []), # middle iterable with zero length ([range(2), range(3), range(0)], []), # last iterable with zero length ]: self.assertEqual(list(product(*args)), result) for r in range(4): self.assertEqual(list(product(*(args*r))), list(product(*args, **dict(repeat=r)))) self.assertEqual(len(list(product(*[range(7)]*6))), 7**6) self.assertRaises(TypeError, product, range(6), None) def product1(*args, **kwds): pools = map(tuple, args) * kwds.get('repeat', 1) n = len(pools) if n == 0: yield () return if any(len(pool) == 0 for pool in pools): return indices = [0] * n yield tuple(pool[i] for pool, i in zip(pools, indices)) while 1: for i in reversed(range(n)): # right to left if indices[i] == len(pools[i]) - 1: continue indices[i] += 1 for j in range(i+1, n): indices[j] = 0 yield tuple(pool[i] for pool, i in zip(pools, indices)) break else: return def product2(*args, **kwds): 'Pure python version used in docs' pools = map(tuple, args) * kwds.get('repeat', 1) result = [[]] for pool in pools: result = [x+[y] for x in result for y in pool] for prod in result: yield tuple(prod) argtypes = ['', 'abc', '', xrange(0), xrange(4), dict(a=1, b=2, c=3), set('abcdefg'), range(11), tuple(range(13))] for i in range(100): args = [random.choice(argtypes) for j in range(random.randrange(5))] expected_len = prod(map(len, args)) self.assertEqual(len(list(product(*args))), expected_len) self.assertEqual(list(product(*args)), list(product1(*args))) self.assertEqual(list(product(*args)), list(product2(*args))) args = map(iter, args) self.assertEqual(len(list(product(*args))), expected_len) @test_support.bigaddrspacetest def test_product_overflow(self): with self.assertRaises((OverflowError, MemoryError)): product(*(['ab']*2**5), repeat=2**25) @test_support.impl_detail("tuple reuse is specific to CPython") def test_product_tuple_reuse(self): self.assertEqual(len(set(map(id, product('abc', 'def')))), 1) self.assertNotEqual(len(set(map(id, list(product('abc', 'def'))))), 1) def test_repeat(self): self.assertEqual(list(repeat(object='a', times=3)), ['a', 'a', 'a']) self.assertEqual(list(repeat(object='a', times=0)), []) self.assertEqual(list(repeat(object='a', times=-1)), []) self.assertEqual(list(repeat(object='a', times=-2)), []) self.assertEqual(zip(xrange(3),repeat('a')), [(0, 'a'), (1, 'a'), (2, 'a')]) self.assertEqual(list(repeat('a', 3)), ['a', 'a', 'a']) self.assertEqual(take(3, repeat('a')), ['a', 'a', 'a']) self.assertEqual(list(repeat('a', 0)), []) self.assertEqual(list(repeat('a', -3)), []) self.assertRaises(TypeError, repeat) self.assertRaises(TypeError, repeat, None, 3, 4) self.assertRaises(TypeError, repeat, None, 'a') r = repeat(1+0j) self.assertEqual(repr(r), 'repeat((1+0j))') r = repeat(1+0j, 5) self.assertEqual(repr(r), 'repeat((1+0j), 5)') list(r) self.assertEqual(repr(r), 'repeat((1+0j), 0)') def test_repeat_with_negative_times(self): self.assertEqual(repr(repeat('a', -1)), "repeat('a', 0)") self.assertEqual(repr(repeat('a', -2)), "repeat('a', 0)") self.assertEqual(repr(repeat('a', times=-1)), "repeat('a', 0)") self.assertEqual(repr(repeat('a', times=-2)), "repeat('a', 0)") def test_imap(self): self.assertEqual(list(imap(operator.pow, range(3), range(1,7))), [0**1, 1**2, 2**3]) self.assertEqual(list(imap(None, 'abc', range(5))), [('a',0),('b',1),('c',2)]) self.assertEqual(list(imap(None, 'abc', count())), [('a',0),('b',1),('c',2)]) self.assertEqual(take(2,imap(None, 'abc', count())), [('a',0),('b',1)]) self.assertEqual(list(imap(operator.pow, [])), []) self.assertRaises(TypeError, imap) self.assertRaises(TypeError, imap, operator.neg) self.assertRaises(TypeError, imap(10, range(5)).next) self.assertRaises(ValueError, imap(errfunc, [4], [5]).next) self.assertRaises(TypeError, imap(onearg, [4], [5]).next) def test_starmap(self): self.assertEqual(list(starmap(operator.pow, zip(range(3), range(1,7)))), [0**1, 1**2, 2**3]) self.assertEqual(take(3, starmap(operator.pow, izip(count(), count(1)))), [0**1, 1**2, 2**3]) self.assertEqual(list(starmap(operator.pow, [])), []) self.assertEqual(list(starmap(operator.pow, [iter([4,5])])), [4**5]) self.assertRaises(TypeError, list, starmap(operator.pow, [None])) self.assertRaises(TypeError, starmap) self.assertRaises(TypeError, starmap, operator.pow, [(4,5)], 'extra') self.assertRaises(TypeError, starmap(10, [(4,5)]).next) self.assertRaises(ValueError, starmap(errfunc, [(4,5)]).next) self.assertRaises(TypeError, starmap(onearg, [(4,5)]).next) def test_islice(self): for args in [ # islice(args) should agree with range(args) (10, 20, 3), (10, 3, 20), (10, 20), (10, 10), (10, 3), (20,) ]: self.assertEqual(list(islice(xrange(100), *args)), range(*args)) for args, tgtargs in [ # Stop when seqn is exhausted ((10, 110, 3), ((10, 100, 3))), ((10, 110), ((10, 100))), ((110,), (100,)) ]: self.assertEqual(list(islice(xrange(100), *args)), range(*tgtargs)) # Test stop=None self.assertEqual(list(islice(xrange(10), None)), range(10)) self.assertEqual(list(islice(xrange(10), None, None)), range(10)) self.assertEqual(list(islice(xrange(10), None, None, None)), range(10)) self.assertEqual(list(islice(xrange(10), 2, None)), range(2, 10)) self.assertEqual(list(islice(xrange(10), 1, None, 2)), range(1, 10, 2)) # Test number of items consumed SF #1171417 it = iter(range(10)) self.assertEqual(list(islice(it, 3)), range(3)) self.assertEqual(list(it), range(3, 10)) it = iter(range(10)) self.assertEqual(list(islice(it, 3, 3)), []) self.assertEqual(list(it), range(3, 10)) # Test invalid arguments self.assertRaises(TypeError, islice, xrange(10)) self.assertRaises(TypeError, islice, xrange(10), 1, 2, 3, 4) self.assertRaises(ValueError, islice, xrange(10), -5, 10, 1) self.assertRaises(ValueError, islice, xrange(10), 1, -5, -1) self.assertRaises(ValueError, islice, xrange(10), 1, 10, -1) self.assertRaises(ValueError, islice, xrange(10), 1, 10, 0) self.assertRaises(ValueError, islice, xrange(10), 'a') self.assertRaises(ValueError, islice, xrange(10), 'a', 1) self.assertRaises(ValueError, islice, xrange(10), 1, 'a') self.assertRaises(ValueError, islice, xrange(10), 'a', 1, 1) self.assertRaises(ValueError, islice, xrange(10), 1, 'a', 1) self.assertEqual(len(list(islice(count(), 1, 10, maxsize))), 1) # Issue #10323: Less islice in a predictable state c = count() self.assertEqual(list(islice(c, 1, 3, 50)), [1]) self.assertEqual(next(c), 3) # Issue #21321: check source iterator is not referenced # from islice() after the latter has been exhausted it = (x for x in (1, 2)) wr = weakref.ref(it) it = islice(it, 1) self.assertIsNotNone(wr()) list(it) # exhaust the iterator test_support.gc_collect() self.assertIsNone(wr()) def test_takewhile(self): data = [1, 3, 5, 20, 2, 4, 6, 8] underten = lambda x: x<10 self.assertEqual(list(takewhile(underten, data)), [1, 3, 5]) self.assertEqual(list(takewhile(underten, [])), []) self.assertRaises(TypeError, takewhile) self.assertRaises(TypeError, takewhile, operator.pow) self.assertRaises(TypeError, takewhile, operator.pow, [(4,5)], 'extra') self.assertRaises(TypeError, takewhile(10, [(4,5)]).next) self.assertRaises(ValueError, takewhile(errfunc, [(4,5)]).next) t = takewhile(bool, [1, 1, 1, 0, 0, 0]) self.assertEqual(list(t), [1, 1, 1]) self.assertRaises(StopIteration, t.next) def test_dropwhile(self): data = [1, 3, 5, 20, 2, 4, 6, 8] underten = lambda x: x<10 self.assertEqual(list(dropwhile(underten, data)), [20, 2, 4, 6, 8]) self.assertEqual(list(dropwhile(underten, [])), []) self.assertRaises(TypeError, dropwhile) self.assertRaises(TypeError, dropwhile, operator.pow) self.assertRaises(TypeError, dropwhile, operator.pow, [(4,5)], 'extra') self.assertRaises(TypeError, dropwhile(10, [(4,5)]).next) self.assertRaises(ValueError, dropwhile(errfunc, [(4,5)]).next) def test_tee(self): n = 200 def irange(n): for i in xrange(n): yield i a, b = tee([]) # test empty iterator self.assertEqual(list(a), []) self.assertEqual(list(b), []) a, b = tee(irange(n)) # test 100% interleaved self.assertEqual(zip(a,b), zip(range(n),range(n))) a, b = tee(irange(n)) # test 0% interleaved self.assertEqual(list(a), range(n)) self.assertEqual(list(b), range(n)) a, b = tee(irange(n)) # test dealloc of leading iterator for i in xrange(100): self.assertEqual(a.next(), i) del a self.assertEqual(list(b), range(n)) a, b = tee(irange(n)) # test dealloc of trailing iterator for i in xrange(100): self.assertEqual(a.next(), i) del b self.assertEqual(list(a), range(100, n)) for j in xrange(5): # test randomly interleaved order = [0]*n + [1]*n random.shuffle(order) lists = ([], []) its = tee(irange(n)) for i in order: value = its[i].next() lists[i].append(value) self.assertEqual(lists[0], range(n)) self.assertEqual(lists[1], range(n)) # test argument format checking self.assertRaises(TypeError, tee) self.assertRaises(TypeError, tee, 3) self.assertRaises(TypeError, tee, [1,2], 'x') self.assertRaises(TypeError, tee, [1,2], 3, 'x') # tee object should be instantiable a, b = tee('abc') c = type(a)('def') self.assertEqual(list(c), list('def')) # test long-lagged and multi-way split a, b, c = tee(xrange(2000), 3) for i in xrange(100): self.assertEqual(a.next(), i) self.assertEqual(list(b), range(2000)) self.assertEqual([c.next(), c.next()], range(2)) self.assertEqual(list(a), range(100,2000)) self.assertEqual(list(c), range(2,2000)) # test values of n self.assertRaises(TypeError, tee, 'abc', 'invalid') self.assertRaises(ValueError, tee, [], -1) for n in xrange(5): result = tee('abc', n) self.assertEqual(type(result), tuple) self.assertEqual(len(result), n) self.assertEqual(map(list, result), [list('abc')]*n) # tee pass-through to copyable iterator a, b = tee('abc') c, d = tee(a) self.assertTrue(a is c) # test tee_new t1, t2 = tee('abc') tnew = type(t1) self.assertRaises(TypeError, tnew) self.assertRaises(TypeError, tnew, 10) t3 = tnew(t1) self.assertTrue(list(t1) == list(t2) == list(t3) == list('abc')) # test that tee objects are weak referencable a, b = tee(xrange(10)) p = weakref.proxy(a) self.assertEqual(getattr(p, '__class__'), type(b)) del a self.assertRaises(ReferenceError, getattr, p, '__class__') # Issue 13454: Crash when deleting backward iterator from tee() def test_tee_del_backward(self): forward, backward = tee(repeat(None, 20000000)) try: any(forward) # exhaust the iterator del backward except: del forward, backward raise def test_tee_reenter(self): class I: first = True def __iter__(self): return self def next(self): first = self.first self.first = False if first: return next(b) a, b = tee(I()) with self.assertRaisesRegexp(RuntimeError, "tee"): next(a) @unittest.skipUnless(threading, 'Threading required for this test.') def test_tee_concurrent(self): start = threading.Event() finish = threading.Event() class I: def __iter__(self): return self def next(self): start.set() finish.wait() a, b = tee(I()) thread = threading.Thread(target=next, args=[a]) thread.start() try: start.wait() with self.assertRaisesRegexp(RuntimeError, "tee"): next(b) finally: finish.set() thread.join() def test_StopIteration(self): self.assertRaises(StopIteration, izip().next) for f in (chain, cycle, izip, groupby): self.assertRaises(StopIteration, f([]).next) self.assertRaises(StopIteration, f(StopNow()).next) self.assertRaises(StopIteration, islice([], None).next) self.assertRaises(StopIteration, islice(StopNow(), None).next) p, q = tee([]) self.assertRaises(StopIteration, p.next) self.assertRaises(StopIteration, q.next) p, q = tee(StopNow()) self.assertRaises(StopIteration, p.next) self.assertRaises(StopIteration, q.next) self.assertRaises(StopIteration, repeat(None, 0).next) for f in (ifilter, ifilterfalse, imap, takewhile, dropwhile, starmap): self.assertRaises(StopIteration, f(lambda x:x, []).next) self.assertRaises(StopIteration, f(lambda x:x, StopNow()).next) class TestExamples(unittest.TestCase): def test_chain(self): self.assertEqual(''.join(chain('ABC', 'DEF')), 'ABCDEF') def test_chain_from_iterable(self): self.assertEqual(''.join(chain.from_iterable(['ABC', 'DEF'])), 'ABCDEF') def test_combinations(self): self.assertEqual(list(combinations('ABCD', 2)), [('A','B'), ('A','C'), ('A','D'), ('B','C'), ('B','D'), ('C','D')]) self.assertEqual(list(combinations(range(4), 3)), [(0,1,2), (0,1,3), (0,2,3), (1,2,3)]) def test_combinations_with_replacement(self): self.assertEqual(list(combinations_with_replacement('ABC', 2)), [('A','A'), ('A','B'), ('A','C'), ('B','B'), ('B','C'), ('C','C')]) def test_compress(self): self.assertEqual(list(compress('ABCDEF', [1,0,1,0,1,1])), list('ACEF')) def test_count(self): self.assertEqual(list(islice(count(10), 5)), [10, 11, 12, 13, 14]) def test_cycle(self): self.assertEqual(list(islice(cycle('ABCD'), 12)), list('ABCDABCDABCD')) def test_dropwhile(self): self.assertEqual(list(dropwhile(lambda x: x<5, [1,4,6,4,1])), [6,4,1]) def test_groupby(self): self.assertEqual([k for k, g in groupby('AAAABBBCCDAABBB')], list('ABCDAB')) self.assertEqual([(list(g)) for k, g in groupby('AAAABBBCCD')], [list('AAAA'), list('BBB'), list('CC'), list('D')]) def test_ifilter(self): self.assertEqual(list(ifilter(lambda x: x%2, range(10))), [1,3,5,7,9]) def test_ifilterfalse(self): self.assertEqual(list(ifilterfalse(lambda x: x%2, range(10))), [0,2,4,6,8]) def test_imap(self): self.assertEqual(list(imap(pow, (2,3,10), (5,2,3))), [32, 9, 1000]) def test_islice(self): self.assertEqual(list(islice('ABCDEFG', 2)), list('AB')) self.assertEqual(list(islice('ABCDEFG', 2, 4)), list('CD')) self.assertEqual(list(islice('ABCDEFG', 2, None)), list('CDEFG')) self.assertEqual(list(islice('ABCDEFG', 0, None, 2)), list('ACEG')) def test_izip(self): self.assertEqual(list(izip('ABCD', 'xy')), [('A', 'x'), ('B', 'y')]) def test_izip_longest(self): self.assertEqual(list(izip_longest('ABCD', 'xy', fillvalue='-')), [('A', 'x'), ('B', 'y'), ('C', '-'), ('D', '-')]) def test_permutations(self): self.assertEqual(list(permutations('ABCD', 2)), map(tuple, 'AB AC AD BA BC BD CA CB CD DA DB DC'.split())) self.assertEqual(list(permutations(range(3))), [(0,1,2), (0,2,1), (1,0,2), (1,2,0), (2,0,1), (2,1,0)]) def test_product(self): self.assertEqual(list(product('ABCD', 'xy')), map(tuple, 'Ax Ay Bx By Cx Cy Dx Dy'.split())) self.assertEqual(list(product(range(2), repeat=3)), [(0,0,0), (0,0,1), (0,1,0), (0,1,1), (1,0,0), (1,0,1), (1,1,0), (1,1,1)]) def test_repeat(self): self.assertEqual(list(repeat(10, 3)), [10, 10, 10]) def test_stapmap(self): self.assertEqual(list(starmap(pow, [(2,5), (3,2), (10,3)])), [32, 9, 1000]) def test_takewhile(self): self.assertEqual(list(takewhile(lambda x: x<5, [1,4,6,4,1])), [1,4]) class TestPurePythonRoughEquivalents(unittest.TestCase): @staticmethod def islice(iterable, *args): s = slice(*args) start, stop, step = s.start or 0, s.stop or sys.maxint, s.step or 1 it = iter(xrange(start, stop, step)) try: nexti = next(it) except StopIteration: # Consume *iterable* up to the *start* position. for i, element in izip(xrange(start), iterable): pass return try: for i, element in enumerate(iterable): if i == nexti: yield element nexti = next(it) except StopIteration: # Consume to *stop*. for i, element in izip(xrange(i + 1, stop), iterable): pass def test_islice_recipe(self): self.assertEqual(list(self.islice('ABCDEFG', 2)), list('AB')) self.assertEqual(list(self.islice('ABCDEFG', 2, 4)), list('CD')) self.assertEqual(list(self.islice('ABCDEFG', 2, None)), list('CDEFG')) self.assertEqual(list(self.islice('ABCDEFG', 0, None, 2)), list('ACEG')) # Test items consumed. it = iter(xrange(10)) self.assertEqual(list(self.islice(it, 3)), range(3)) self.assertEqual(list(it), range(3, 10)) it = iter(xrange(10)) self.assertEqual(list(self.islice(it, 3, 3)), []) self.assertEqual(list(it), range(3, 10)) # Test that slice finishes in predictable state. c = count() self.assertEqual(list(self.islice(c, 1, 3, 50)), [1]) self.assertEqual(next(c), 3) class TestGC(unittest.TestCase): def makecycle(self, iterator, container): container.append(iterator) iterator.next() del container, iterator def test_chain(self): a = [] self.makecycle(chain(a), a) def test_chain_from_iterable(self): a = [] self.makecycle(chain.from_iterable([a]), a) def test_combinations(self): a = [] self.makecycle(combinations([1,2,a,3], 3), a) def test_combinations_with_replacement(self): a = [] self.makecycle(combinations_with_replacement([1,2,a,3], 3), a) def test_compress(self): a = [] self.makecycle(compress('ABCDEF', [1,0,1,0,1,0]), a) def test_count(self): a = [] Int = type('Int', (int,), dict(x=a)) self.makecycle(count(Int(0), Int(1)), a) def test_cycle(self): a = [] self.makecycle(cycle([a]*2), a) def test_dropwhile(self): a = [] self.makecycle(dropwhile(bool, [0, a, a]), a) def test_groupby(self): a = [] self.makecycle(groupby([a]*2, lambda x:x), a) def test_issue2246(self): # Issue 2246 -- the _grouper iterator was not included in GC n = 10 keyfunc = lambda x: x for i, j in groupby(xrange(n), key=keyfunc): keyfunc.__dict__.setdefault('x',[]).append(j) def test_ifilter(self): a = [] self.makecycle(ifilter(lambda x:True, [a]*2), a) def test_ifilterfalse(self): a = [] self.makecycle(ifilterfalse(lambda x:False, a), a) def test_izip(self): a = [] self.makecycle(izip([a]*2, [a]*3), a) def test_izip_longest(self): a = [] self.makecycle(izip_longest([a]*2, [a]*3), a) b = [a, None] self.makecycle(izip_longest([a]*2, [a]*3, fillvalue=b), a) def test_imap(self): a = [] self.makecycle(imap(lambda x:x, [a]*2), a) def test_islice(self): a = [] self.makecycle(islice([a]*2, None), a) def test_permutations(self): a = [] self.makecycle(permutations([1,2,a,3], 3), a) def test_product(self): a = [] self.makecycle(product([1,2,a,3], repeat=3), a) def test_repeat(self): a = [] self.makecycle(repeat(a), a) def test_starmap(self): a = [] self.makecycle(starmap(lambda *t: t, [(a,a)]*2), a) def test_takewhile(self): a = [] self.makecycle(takewhile(bool, [1, 0, a, a]), a) def R(seqn): 'Regular generator' for i in seqn: yield i class G: 'Sequence using __getitem__' def __init__(self, seqn): self.seqn = seqn def __getitem__(self, i): return self.seqn[i] class I: 'Sequence using iterator protocol' def __init__(self, seqn): self.seqn = seqn self.i = 0 def __iter__(self): return self def next(self): if self.i >= len(self.seqn): raise StopIteration v = self.seqn[self.i] self.i += 1 return v class Ig: 'Sequence using iterator protocol defined with a generator' def __init__(self, seqn): self.seqn = seqn self.i = 0 def __iter__(self): for val in self.seqn: yield val class X: 'Missing __getitem__ and __iter__' def __init__(self, seqn): self.seqn = seqn self.i = 0 def next(self): if self.i >= len(self.seqn): raise StopIteration v = self.seqn[self.i] self.i += 1 return v class N: 'Iterator missing next()' def __init__(self, seqn): self.seqn = seqn self.i = 0 def __iter__(self): return self class E: 'Test propagation of exceptions' def __init__(self, seqn): self.seqn = seqn self.i = 0 def __iter__(self): return self def next(self): 3 // 0 class S: 'Test immediate stop' def __init__(self, seqn): pass def __iter__(self): return self def next(self): raise StopIteration def L(seqn): 'Test multiple tiers of iterators' return chain(imap(lambda x:x, R(Ig(G(seqn))))) class TestVariousIteratorArgs(unittest.TestCase): def test_chain(self): for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(chain(g(s))), list(g(s))) self.assertEqual(list(chain(g(s), g(s))), list(g(s))+list(g(s))) self.assertRaises(TypeError, list, chain(X(s))) self.assertRaises(TypeError, list, chain(N(s))) self.assertRaises(ZeroDivisionError, list, chain(E(s))) def test_compress(self): for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)): n = len(s) for g in (G, I, Ig, S, L, R): self.assertEqual(list(compress(g(s), repeat(1))), list(g(s))) self.assertRaises(TypeError, compress, X(s), repeat(1)) self.assertRaises(TypeError, list, compress(N(s), repeat(1))) self.assertRaises(ZeroDivisionError, list, compress(E(s), repeat(1))) def test_product(self): for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)): self.assertRaises(TypeError, product, X(s)) self.assertRaises(TypeError, product, N(s)) self.assertRaises(ZeroDivisionError, product, E(s)) def test_cycle(self): for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): tgtlen = len(s) * 3 expected = list(g(s))*3 actual = list(islice(cycle(g(s)), tgtlen)) self.assertEqual(actual, expected) self.assertRaises(TypeError, cycle, X(s)) self.assertRaises(TypeError, list, cycle(N(s))) self.assertRaises(ZeroDivisionError, list, cycle(E(s))) def test_groupby(self): for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual([k for k, sb in groupby(g(s))], list(g(s))) self.assertRaises(TypeError, groupby, X(s)) self.assertRaises(TypeError, list, groupby(N(s))) self.assertRaises(ZeroDivisionError, list, groupby(E(s))) def test_ifilter(self): for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(ifilter(isEven, g(s))), filter(isEven, g(s))) self.assertRaises(TypeError, ifilter, isEven, X(s)) self.assertRaises(TypeError, list, ifilter(isEven, N(s))) self.assertRaises(ZeroDivisionError, list, ifilter(isEven, E(s))) def test_ifilterfalse(self): for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(ifilterfalse(isEven, g(s))), filter(isOdd, g(s))) self.assertRaises(TypeError, ifilterfalse, isEven, X(s)) self.assertRaises(TypeError, list, ifilterfalse(isEven, N(s))) self.assertRaises(ZeroDivisionError, list, ifilterfalse(isEven, E(s))) def test_izip(self): for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(izip(g(s))), zip(g(s))) self.assertEqual(list(izip(g(s), g(s))), zip(g(s), g(s))) self.assertRaises(TypeError, izip, X(s)) self.assertRaises(TypeError, list, izip(N(s))) self.assertRaises(ZeroDivisionError, list, izip(E(s))) def test_iziplongest(self): for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(izip_longest(g(s))), zip(g(s))) self.assertEqual(list(izip_longest(g(s), g(s))), zip(g(s), g(s))) self.assertRaises(TypeError, izip_longest, X(s)) self.assertRaises(TypeError, list, izip_longest(N(s))) self.assertRaises(ZeroDivisionError, list, izip_longest(E(s))) def test_imap(self): for s in (range(10), range(0), range(100), (7,11), xrange(20,50,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(imap(onearg, g(s))), map(onearg, g(s))) self.assertEqual(list(imap(operator.pow, g(s), g(s))), map(operator.pow, g(s), g(s))) self.assertRaises(TypeError, imap, onearg, X(s)) self.assertRaises(TypeError, list, imap(onearg, N(s))) self.assertRaises(ZeroDivisionError, list, imap(onearg, E(s))) def test_islice(self): for s in ("12345", "", range(1000), ('do', 1.2), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(islice(g(s),1,None,2)), list(g(s))[1::2]) self.assertRaises(TypeError, islice, X(s), 10) self.assertRaises(TypeError, list, islice(N(s), 10)) self.assertRaises(ZeroDivisionError, list, islice(E(s), 10)) def test_starmap(self): for s in (range(10), range(0), range(100), (7,11), xrange(20,50,5)): for g in (G, I, Ig, S, L, R): ss = zip(s, s) self.assertEqual(list(starmap(operator.pow, g(ss))), map(operator.pow, g(s), g(s))) self.assertRaises(TypeError, starmap, operator.pow, X(ss)) self.assertRaises(TypeError, list, starmap(operator.pow, N(ss))) self.assertRaises(ZeroDivisionError, list, starmap(operator.pow, E(ss))) def test_takewhile(self): for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): tgt = [] for elem in g(s): if not isEven(elem): break tgt.append(elem) self.assertEqual(list(takewhile(isEven, g(s))), tgt) self.assertRaises(TypeError, takewhile, isEven, X(s)) self.assertRaises(TypeError, list, takewhile(isEven, N(s))) self.assertRaises(ZeroDivisionError, list, takewhile(isEven, E(s))) def test_dropwhile(self): for s in (range(10), range(0), range(1000), (7,11), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): tgt = [] for elem in g(s): if not tgt and isOdd(elem): continue tgt.append(elem) self.assertEqual(list(dropwhile(isOdd, g(s))), tgt) self.assertRaises(TypeError, dropwhile, isOdd, X(s)) self.assertRaises(TypeError, list, dropwhile(isOdd, N(s))) self.assertRaises(ZeroDivisionError, list, dropwhile(isOdd, E(s))) def test_tee(self): for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): it1, it2 = tee(g(s)) self.assertEqual(list(it1), list(g(s))) self.assertEqual(list(it2), list(g(s))) self.assertRaises(TypeError, tee, X(s)) self.assertRaises(TypeError, list, tee(N(s))[0]) self.assertRaises(ZeroDivisionError, list, tee(E(s))[0]) class LengthTransparency(unittest.TestCase): def test_repeat(self): from test.test_iterlen import len self.assertEqual(len(repeat(None, 50)), 50) self.assertRaises(TypeError, len, repeat(None)) class RegressionTests(unittest.TestCase): def test_sf_793826(self): # Fix Armin Rigo's successful efforts to wreak havoc def mutatingtuple(tuple1, f, tuple2): # this builds a tuple t which is a copy of tuple1, # then calls f(t), then mutates t to be equal to tuple2 # (needs len(tuple1) == len(tuple2)). def g(value, first=[1]): if first: del first[:] f(z.next()) return value items = list(tuple2) items[1:1] = list(tuple1) gen = imap(g, items) z = izip(*[gen]*len(tuple1)) z.next() def f(t): global T T = t first[:] = list(T) first = [] mutatingtuple((1,2,3), f, (4,5,6)) second = list(T) self.assertEqual(first, second) def test_sf_950057(self): # Make sure that chain() and cycle() catch exceptions immediately # rather than when shifting between input sources def gen1(): hist.append(0) yield 1 hist.append(1) raise AssertionError hist.append(2) def gen2(x): hist.append(3) yield 2 hist.append(4) if x: raise StopIteration hist = [] self.assertRaises(AssertionError, list, chain(gen1(), gen2(False))) self.assertEqual(hist, [0,1]) hist = [] self.assertRaises(AssertionError, list, chain(gen1(), gen2(True))) self.assertEqual(hist, [0,1]) hist = [] self.assertRaises(AssertionError, list, cycle(gen1())) self.assertEqual(hist, [0,1]) def test_long_chain_of_empty_iterables(self): # Make sure itertools.chain doesn't run into recursion limits when # dealing with long chains of empty iterables. Even with a high # number this would probably only fail in Py_DEBUG mode. it = chain.from_iterable(() for unused in xrange(10000000)) with self.assertRaises(StopIteration): next(it) def test_issue30347_1(self): def f(n): if n == 5: list(b) return n != 6 for (k, b) in groupby(range(10), f): list(b) # shouldn't crash def test_issue30347_2(self): class K(object): i = 0 def __init__(self, v): pass def __eq__(self, other): K.i += 1 if K.i == 1: next(g, None) return True def __hash__(self): return 1 g = next(groupby(range(10), K))[1] for j in range(2): next(g, None) # shouldn't crash class SubclassWithKwargsTest(unittest.TestCase): def test_keywords_in_subclass(self): # count is not subclassable... for cls in (repeat, izip, ifilter, ifilterfalse, chain, imap, starmap, islice, takewhile, dropwhile, cycle, compress): class Subclass(cls): def __init__(self, newarg=None, *args): cls.__init__(self, *args) try: Subclass(newarg=1) except TypeError, err: # we expect type errors because of wrong argument count self.assertNotIn("does not take keyword arguments", err.args[0]) libreftest = """ Doctest for examples in the library reference: libitertools.tex >>> amounts = [120.15, 764.05, 823.14] >>> for checknum, amount in izip(count(1200), amounts): ... print 'Check %d is for $%.2f' % (checknum, amount) ... Check 1200 is for $120.15 Check 1201 is for $764.05 Check 1202 is for $823.14 >>> import operator >>> for cube in imap(operator.pow, xrange(1,4), repeat(3)): ... print cube ... 1 8 27 >>> reportlines = ['EuroPython', 'Roster', '', 'alex', '', 'laura', '', 'martin', '', 'walter', '', 'samuele'] >>> for name in islice(reportlines, 3, None, 2): ... print name.title() ... Alex Laura Martin Walter Samuele >>> from operator import itemgetter >>> d = dict(a=1, b=2, c=1, d=2, e=1, f=2, g=3) >>> di = sorted(sorted(d.iteritems()), key=itemgetter(1)) >>> for k, g in groupby(di, itemgetter(1)): ... print k, map(itemgetter(0), g) ... 1 ['a', 'c', 'e'] 2 ['b', 'd', 'f'] 3 ['g'] # Find runs of consecutive numbers using groupby. The key to the solution # is differencing with a range so that consecutive numbers all appear in # same group. >>> data = [ 1, 4,5,6, 10, 15,16,17,18, 22, 25,26,27,28] >>> for k, g in groupby(enumerate(data), lambda t:t[0]-t[1]): ... print map(operator.itemgetter(1), g) ... [1] [4, 5, 6] [10] [15, 16, 17, 18] [22] [25, 26, 27, 28] >>> def take(n, iterable): ... "Return first n items of the iterable as a list" ... return list(islice(iterable, n)) >>> def enumerate(iterable, start=0): ... return izip(count(start), iterable) >>> def tabulate(function, start=0): ... "Return function(0), function(1), ..." ... return imap(function, count(start)) >>> import collections >>> def consume(iterator, n=None): ... "Advance the iterator n-steps ahead. If n is None, consume entirely." ... # Use functions that consume iterators at C speed. ... if n is None: ... # feed the entire iterator into a zero-length deque ... collections.deque(iterator, maxlen=0) ... else: ... # advance to the empty slice starting at position n ... next(islice(iterator, n, n), None) >>> def nth(iterable, n, default=None): ... "Returns the nth item or a default value" ... return next(islice(iterable, n, None), default) >>> def all_equal(iterable): ... "Returns True if all the elements are equal to each other" ... g = groupby(iterable) ... return next(g, True) and not next(g, False) >>> def quantify(iterable, pred=bool): ... "Count how many times the predicate is true" ... return sum(imap(pred, iterable)) >>> def padnone(iterable): ... "Returns the sequence elements and then returns None indefinitely" ... return chain(iterable, repeat(None)) >>> def ncycles(iterable, n): ... "Returns the sequence elements n times" ... return chain(*repeat(iterable, n)) >>> def dotproduct(vec1, vec2): ... return sum(imap(operator.mul, vec1, vec2)) >>> def flatten(listOfLists): ... return list(chain.from_iterable(listOfLists)) >>> def repeatfunc(func, times=None, *args): ... "Repeat calls to func with specified arguments." ... " Example: repeatfunc(random.random)" ... if times is None: ... return starmap(func, repeat(args)) ... else: ... return starmap(func, repeat(args, times)) >>> def pairwise(iterable): ... "s -> (s0,s1), (s1,s2), (s2, s3), ..." ... a, b = tee(iterable) ... for elem in b: ... break ... return izip(a, b) >>> def grouper(n, iterable, fillvalue=None): ... "grouper(3, 'ABCDEFG', 'x') --> ABC DEF Gxx" ... args = [iter(iterable)] * n ... return izip_longest(fillvalue=fillvalue, *args) >>> def roundrobin(*iterables): ... "roundrobin('ABC', 'D', 'EF') --> A D E B F C" ... # Recipe credited to George Sakkis ... pending = len(iterables) ... nexts = cycle(iter(it).next for it in iterables) ... while pending: ... try: ... for next in nexts: ... yield next() ... except StopIteration: ... pending -= 1 ... nexts = cycle(islice(nexts, pending)) >>> def powerset(iterable): ... "powerset([1,2,3]) --> () (1,) (2,) (3,) (1,2) (1,3) (2,3) (1,2,3)" ... s = list(iterable) ... return chain.from_iterable(combinations(s, r) for r in range(len(s)+1)) >>> def unique_everseen(iterable, key=None): ... "List unique elements, preserving order. Remember all elements ever seen." ... # unique_everseen('AAAABBBCCDAABBB') --> A B C D ... # unique_everseen('ABBCcAD', str.lower) --> A B C D ... seen = set() ... seen_add = seen.add ... if key is None: ... for element in iterable: ... if element not in seen: ... seen_add(element) ... yield element ... else: ... for element in iterable: ... k = key(element) ... if k not in seen: ... seen_add(k) ... yield element >>> def unique_justseen(iterable, key=None): ... "List unique elements, preserving order. Remember only the element just seen." ... # unique_justseen('AAAABBBCCDAABBB') --> A B C D A B ... # unique_justseen('ABBCcAD', str.lower) --> A B C A D ... return imap(next, imap(itemgetter(1), groupby(iterable, key))) This is not part of the examples but it tests to make sure the definitions perform as purported. >>> take(10, count()) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> list(enumerate('abc')) [(0, 'a'), (1, 'b'), (2, 'c')] >>> list(islice(tabulate(lambda x: 2*x), 4)) [0, 2, 4, 6] >>> it = iter(xrange(10)) >>> consume(it, 3) >>> next(it) 3 >>> consume(it) >>> next(it, 'Done') 'Done' >>> nth('abcde', 3) 'd' >>> nth('abcde', 9) is None True >>> [all_equal(s) for s in ('', 'A', 'AAAA', 'AAAB', 'AAABA')] [True, True, True, False, False] >>> quantify(xrange(99), lambda x: x%2==0) 50 >>> a = [[1, 2, 3], [4, 5, 6]] >>> flatten(a) [1, 2, 3, 4, 5, 6] >>> list(repeatfunc(pow, 5, 2, 3)) [8, 8, 8, 8, 8] >>> import random >>> take(5, imap(int, repeatfunc(random.random))) [0, 0, 0, 0, 0] >>> list(pairwise('abcd')) [('a', 'b'), ('b', 'c'), ('c', 'd')] >>> list(pairwise([])) [] >>> list(pairwise('a')) [] >>> list(islice(padnone('abc'), 0, 6)) ['a', 'b', 'c', None, None, None] >>> list(ncycles('abc', 3)) ['a', 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c'] >>> dotproduct([1,2,3], [4,5,6]) 32 >>> list(grouper(3, 'abcdefg', 'x')) [('a', 'b', 'c'), ('d', 'e', 'f'), ('g', 'x', 'x')] >>> list(roundrobin('abc', 'd', 'ef')) ['a', 'd', 'e', 'b', 'f', 'c'] >>> list(powerset([1,2,3])) [(), (1,), (2,), (3,), (1, 2), (1, 3), (2, 3), (1, 2, 3)] >>> all(len(list(powerset(range(n)))) == 2**n for n in range(18)) True >>> list(powerset('abcde')) == sorted(sorted(set(powerset('abcde'))), key=len) True >>> list(unique_everseen('AAAABBBCCDAABBB')) ['A', 'B', 'C', 'D'] >>> list(unique_everseen('ABBCcAD', str.lower)) ['A', 'B', 'C', 'D'] >>> list(unique_justseen('AAAABBBCCDAABBB')) ['A', 'B', 'C', 'D', 'A', 'B'] >>> list(unique_justseen('ABBCcAD', str.lower)) ['A', 'B', 'C', 'A', 'D'] """ __test__ = {'libreftest' : libreftest} def test_main(verbose=None): test_classes = (TestBasicOps, TestVariousIteratorArgs, TestGC, RegressionTests, LengthTransparency, SubclassWithKwargsTest, TestExamples, TestPurePythonRoughEquivalents) test_support.run_unittest(*test_classes) # verify reference counting if verbose and hasattr(sys, "gettotalrefcount"): import gc counts = [None] * 5 for i in xrange(len(counts)): test_support.run_unittest(*test_classes) gc.collect() counts[i] = sys.gettotalrefcount() print counts # doctest the examples in the library reference test_support.run_doctest(sys.modules[__name__], verbose) if __name__ == "__main__": test_main(verbose=True)
[+]
..
[-] test_codecmaps_cn.py
[open]
[-] test_univnewlines.py
[open]
[-] test_cookie.pyo
[open]
[-] test_mmap.pyo
[open]
[-] test_gl.pyc
[open]
[-] test_bigmem.pyc
[open]
[-] test_shelve.pyo
[open]
[-] test_softspace.pyo
[open]
[-] test_future1.pyc
[open]
[-] test_gettext.pyc
[open]
[-] test_importlib.py
[open]
[-] test_global.pyc
[open]
[-] sortperf.pyc
[open]
[-] _mock_backport.pyc
[open]
[-] test_netrc.pyc
[open]
[-] test_codecencodings_iso2022.pyc
[open]
[-] badsyntax_future4.py
[open]
[-] test_xpickle.pyo
[open]
[-] test_userdict.pyo
[open]
[-] test_getargs2.py
[open]
[-] multibytecodec_support.pyc
[open]
[-] time_hashlib.pyc
[open]
[-] test_pty.pyo
[open]
[-] test_multifile.pyc
[open]
[-] test_bastion.py
[open]
[-] test_ast.py
[open]
[-] test_builtin.py
[open]
[-] test_unary.pyc
[open]
[-] test_wsgiref.pyc
[open]
[-] test_codecencodings_hk.pyo
[open]
[-] test___future__.py
[open]
[-] test_grammar.pyc
[open]
[-] test_abc.pyo
[open]
[-] xmltests.pyc
[open]
[-] test_threadsignals.pyo
[open]
[-] test_strtod.pyo
[open]
[-] test_undocumented_details.pyo
[open]
[-] test_future2.py
[open]
[-] test_SimpleHTTPServer.pyo
[open]
[-] test_sys_setprofile.pyo
[open]
[-] test_univnewlines2k.py
[open]
[-] test_xrange.py
[open]
[-] test_future3.py
[open]
[-] test_ossaudiodev.pyc
[open]
[-] test_hmac.py
[open]
[-] test_httpservers.pyc
[open]
[-] test_abstract_numbers.pyc
[open]
[-] test_resource.py
[open]
[-] test_threaded_import.pyc
[open]
[-] test_parser.pyc
[open]
[-] test_dictviews.pyc
[open]
[-] ssl_servers.pyo
[open]
[-] sample_doctest.pyc
[open]
[-] test_sets.py
[open]
[-] test_smtpnet.pyo
[open]
[-] test_math.py
[open]
[-] test_codecmaps_tw.py
[open]
[-] test_argparse.py
[open]
[-] test_richcmp.pyo
[open]
[-] test_asynchat.pyo
[open]
[-] test_funcattrs.pyo
[open]
[-] test_bsddb185.pyc
[open]
[-] test_pow.pyo
[open]
[-] test_scope.pyc
[open]
[-] test_strftime.py
[open]
[-] test_imaplib.pyo
[open]
[-] testcodec.pyc
[open]
[-] test_thread.pyc
[open]
[-] time_hashlib.py
[open]
[-] test_importhooks.py
[open]
[-] keycert.pem
[open]
[-] test_imghdr.py
[open]
[-] test_readline.pyc
[open]
[-] test_winreg.py
[open]
[-] test_zipimport.py
[open]
[-] lock_tests.pyo
[open]
[-] test_property.pyc
[open]
[-] test_threadsignals.pyc
[open]
[-] mp_fork_bomb.pyo
[open]
[-] test_stringprep.pyc
[open]
[-] recursion.tar
[open]
[-] test_dircache.pyc
[open]
[-] test_docxmlrpc.pyo
[open]
[-] test_gdb.pyc
[open]
[-] test_pprint.pyo
[open]
[-] test_wait3.pyc
[open]
[-] test_popen.pyo
[open]
[-] test_zipfile64.pyc
[open]
[-] test_pipes.pyc
[open]
[-] test_gl.py
[open]
[-] test_sys_settrace.pyc
[open]
[-] test_winsound.pyc
[open]
[-] test_urllib2_localnet.pyc
[open]
[-] test_with.py
[open]
[-] test_binhex.pyo
[open]
[-] test_import.py
[open]
[+]
imghdrdata
[-] sgml_input.html
[open]
[-] test_longexp.pyo
[open]
[-] test_macos.py
[open]
[-] test_bsddb.py
[open]
[-] bad_coding.py
[open]
[-] test_cmd_line_script.pyo
[open]
[-] test_unittest.pyc
[open]
[-] test_bool.py
[open]
[-] test_deque.pyc
[open]
[-] test_future_builtins.pyo
[open]
[-] test_ossaudiodev.pyo
[open]
[-] test_runpy.py
[open]
[-] test_pty.py
[open]
[-] test_mutants.py
[open]
[-] test_netrc.py
[open]
[-] test_gzip.pyo
[open]
[-] test_enumerate.pyc
[open]
[-] tf_inherit_check.pyo
[open]
[-] test_fractions.pyc
[open]
[-] sample_doctest_no_doctests.py
[open]
[-] badsyntax_future6.py
[open]
[-] test_compileall.pyc
[open]
[-] test_pep352.py
[open]
[-] test_ucn.pyc
[open]
[-] test_generators.py
[open]
[-] test_struct.pyo
[open]
[-] test_readline.pyo
[open]
[-] test_tempfile.pyo
[open]
[-] _mock_backport.pyo
[open]
[-] test_wsgiref.py
[open]
[-] test_multifile.pyo
[open]
[-] test_codecmaps_tw.pyc
[open]
[-] test_pstats.py
[open]
[-] string_tests.pyc
[open]
[-] test_structmembers.py
[open]
[-] test_capi.pyo
[open]
[-] pydoc_mod.pyc
[open]
[-] test_functools.pyc
[open]
[-] test_shelve.pyc
[open]
[-] test_str.pyc
[open]
[-] test_nis.pyc
[open]
[-] test_zipfile.pyc
[open]
[-] test_mmap.py
[open]
[-] test_structseq.pyo
[open]
[-] test_al.pyo
[open]
[-] test_base64.py
[open]
[-] test_dict.pyc
[open]
[-] test_modulefinder.pyc
[open]
[-] ssl_key.passwd.pem
[open]
[-] test_argparse.pyc
[open]
[-] testimgr.uue
[open]
[-] test__locale.py
[open]
[-] test_gc.pyo
[open]
[-] test_cookie.pyc
[open]
[-] test_eof.pyo
[open]
[-] test_grammar.pyo
[open]
[-] test_structmembers.pyo
[open]
[-] test_test_support.pyo
[open]
[-] test_timeout.pyc
[open]
[-] test_nis.py
[open]
[-] test_cl.py
[open]
[-] test_parser.pyo
[open]
[-] test_datetime.pyc
[open]
[-] test_richcmp.pyc
[open]
[-] test_urllib2_localnet.py
[open]
[-] test_sax.pyo
[open]
[-] test_mhlib.pyo
[open]
[-] test_abc.pyc
[open]
[-] mailcap.txt
[open]
[-] test_time.py
[open]
[-] test_doctest.pyc
[open]
[-] pyclbr_input.pyo
[open]
[-] test_structseq.py
[open]
[-] sample_doctest.py
[open]
[-] re_tests.pyo
[open]
[-] test_kqueue.py
[open]
[-] test___all__.py
[open]
[-] test_pkgimport.pyc
[open]
[-] test_inspect.pyo
[open]
[-] test_urllib.pyo
[open]
[-] test_codeop.pyo
[open]
[-] test_extcall.pyc
[open]
[-] test_xmllib.py
[open]
[-] test_json.pyc
[open]
[-] test_bigaddrspace.pyc
[open]
[-] test_codecs.py
[open]
[-] test_imaplib.pyc
[open]
[-] gdb_sample.pyc
[open]
[-] ssltests.pyo
[open]
[-] test_tuple.pyo
[open]
[-] test_with.pyc
[open]
[-] test_threading.py
[open]
[-] test_repr.py
[open]
[-] test_urllibnet.pyo
[open]
[-] test_itertools.py
[open]
[-] multibytecodec_support.pyo
[open]
[-] test_stringprep.pyo
[open]
[-] test_dumbdbm.pyc
[open]
[-] selfsigned_pythontestdotnet.pem
[open]
[-] badsyntax_future8.py
[open]
[-] test_unicode_file.pyo
[open]
[-] test__osx_support.pyo
[open]
[-] test_dummy_thread.py
[open]
[-] test_pwd.pyc
[open]
[-] xmltests.py
[open]
[-] test_cookielib.py
[open]
[-] test_csv.pyo
[open]
[-] test_crypt.pyo
[open]
[-] test_pickle.pyo
[open]
[-] test_mimetypes.pyo
[open]
[-] testimg.uue
[open]
[-] test_descr.pyo
[open]
[-] doctest_aliases.pyc
[open]
[-] test_code.py
[open]
[-] test_pyexpat.pyc
[open]
[-] test_warnings.pyc
[open]
[-] test_pkg.pyo
[open]
[-] relimport.py
[open]
[-] test_fractions.py
[open]
[-] revocation.crl
[open]
[-] test_cmd_line.py
[open]
[-] re_tests.pyc
[open]
[-] test_ensurepip.py
[open]
[-] test_urllib2net.pyo
[open]
[-] test_dircache.pyo
[open]
[-] test_dircache.py
[open]
[-] test_future_builtins.pyc
[open]
[-] test_memoryview.py
[open]
[-] test_int.py
[open]
[-] sortperf.pyo
[open]
[-] test_copy_reg.py
[open]
[-] test_datetime.py
[open]
[-] test_ioctl.pyo
[open]
[-] test_telnetlib.py
[open]
[-] test_extcall.pyo
[open]
[-] badsyntax_future7.py
[open]
[-] test_defaultdict.py
[open]
[-] test_bz2.pyo
[open]
[-] test_abc.py
[open]
[-] test_py_compile.pyo
[open]
[-] test_typechecks.pyc
[open]
[-] test_socket.pyc
[open]
[-] test_site.py
[open]
[-] test_plistlib.pyc
[open]
[-] test_email.pyo
[open]
[-] test_io.pyc
[open]
[-] test_locale.py
[open]
[-] test_popen2.pyc
[open]
[-] test_code.pyo
[open]
[-] test_bastion.pyo
[open]
[-] test_macostools.pyo
[open]
[-] test_peepholer.pyo
[open]
[-] test_mailcap.pyo
[open]
[-] test_dict.pyo
[open]
[-] test_thread.pyo
[open]
[-] test_syntax.pyc
[open]
[-] test_genexps.pyo
[open]
[-] test_ctypes.pyo
[open]
[-] test_pep352.pyo
[open]
[-] test_shutil.pyo
[open]
[-] randv2_64.pck
[open]
[-] test_decorators.pyc
[open]
[-] test_xmlrpc.pyo
[open]
[-] profilee.py
[open]
[-] nullbytecert.pem
[open]
[-] audiotests.pyc
[open]
[-] test_unpack.pyo
[open]
[-] test_xdrlib.py
[open]
[-] test_codecencodings_cn.pyo
[open]
[-] test_uu.py
[open]
[-] test_runpy.pyo
[open]
[-] test_calendar.py
[open]
[-] test_sets.pyc
[open]
[-] test_xrange.pyc
[open]
[-] test_compile.py
[open]
[-] test_mailbox.py
[open]
[-] test_capi.pyc
[open]
[-] test_ttk_textonly.py
[open]
[-] test_cookie.py
[open]
[-] test_uuid.pyc
[open]
[-] test_regrtest.pyc
[open]
[-] test_cfgparser.py
[open]
[-] talos-2019-0758.pem
[open]
[-] test_grp.py
[open]
[-] test_string.pyc
[open]
[-] test_socket.py
[open]
[-] test_colorsys.py
[open]
[-] test_imp.pyc
[open]
[-] test_urllib2net.py
[open]
[-] test_print.py
[open]
[-] test_bytes.pyo
[open]
[-] test_fork1.py
[open]
[-] keycert.passwd.pem
[open]
[-] script_helper.py
[open]
[-] test___all__.pyc
[open]
[-] test_zipimport_support.pyo
[open]
[-] test_httplib.pyc
[open]
[-] test_audioop.pyo
[open]
[-] test_complex_args.pyo
[open]
[-] test_linuxaudiodev.pyo
[open]
[-] re_tests.py
[open]
[-] double_const.pyo
[open]
[-] tokenize_tests.txt
[open]
[-] test_contextlib.pyc
[open]
[-] test_bsddb3.py
[open]
[-] test_json.pyo
[open]
[-] test_symtable.pyc
[open]
[-] pydoc_mod.pyo
[open]
[-] test_repr.pyo
[open]
[-] test_startfile.pyc
[open]
[-] warning_tests.pyc
[open]
[-] test_univnewlines2k.pyo
[open]
[-] test_tools.pyo
[open]
[-] test_file.pyc
[open]
[-] test_codecencodings_tw.pyc
[open]
[-] test_pickle.pyc
[open]
[-] regrtest.pyc
[open]
[-] mapping_tests.pyc
[open]
[-] test_gettext.pyo
[open]
[-] test_smtplib.py
[open]
[-] test_msilib.pyc
[open]
[-] test_getopt.pyo
[open]
[-] test_codeccallbacks.py
[open]
[-] inspect_fodder.pyo
[open]
[-] test_timeout.py
[open]
[-] symlink_support.pyc
[open]
[-] test_importlib.pyc
[open]
[-] test_compiler.py
[open]
[-] test_deque.pyo
[open]
[-] test_types.pyc
[open]
[-] test_fileinput.pyo
[open]
[-] test_uuid.py
[open]
[-] test_cfgparser.pyc
[open]
[-] autotest.py
[open]
[-] test_json.py
[open]
[-] zipdir.zip
[open]
[-] test_calendar.pyc
[open]
[-] list_tests.pyc
[open]
[-] test___future__.pyc
[open]
[-] test_codecmaps_kr.pyc
[open]
[-] test_sys.pyo
[open]
[-] test_rfc822.pyc
[open]
[-] test_pkg.pyc
[open]
[-] test_charmapcodec.py
[open]
[-] ssl_cert.pem
[open]
[-] test_cgi.pyo
[open]
[-] test_contains.pyc
[open]
[-] test_pty.py.tty-fail
[open]
[-] test_py3kwarn.py
[open]
[-] test_old_mailbox.pyc
[open]
[-] 185test.db
[open]
[-] test_unittest.py
[open]
[-] test_struct.py
[open]
[-] fork_wait.pyo
[open]
[-] test_doctest.py
[open]
[-] test_pprint.py
[open]
[-] pystone.py
[open]
[-] test_openpty.py.tty-fail
[open]
[-] test_cmd_line.pyo
[open]
[-] test_dis.pyo
[open]
[-] test_trace.py
[open]
[-] test_set.pyo
[open]
[-] pydocfodder.pyc
[open]
[-] test_getargs.py
[open]
[-] test_setcomps.pyo
[open]
[-] inspect_fodder.pyc
[open]
[-] profilee.pyc
[open]
[-] empty.vbs
[open]
[-] pystone.pyc
[open]
[-] test_array.py
[open]
[-] test_pyclbr.py
[open]
[-] test_symtable.pyo
[open]
[-] double_const.pyc
[open]
[-] test_collections.pyc
[open]
[-] test_zipimport.pyc
[open]
[-] test_bz2.py
[open]
[-] test_nis.pyo
[open]
[-] test_email_codecs.py
[open]
[-] test_bsddb.pyc
[open]
[-] test_bufio.pyc
[open]
[-] test_telnetlib.pyc
[open]
[-] test_string.pyo
[open]
[-] test_fcntl.py
[open]
[-] regrtest.pyo
[open]
[-] pythoninfo.pyo
[open]
[-] test_with.pyo
[open]
[-] test_userlist.py
[open]
[-] bad_coding2.py
[open]
[-] test_mmap.pyc
[open]
[-] test_gzip.pyc
[open]
[-] test_compiler.pyc
[open]
[-] test_undocumented_details.py
[open]
[-] test_al.pyc
[open]
[-] test_smtpnet.pyc
[open]
[-] test_slice.pyo
[open]
[-] test_future2.pyo
[open]
[-] symlink_support.py
[open]
[-] double_const.py
[open]
[-] test_getargs2.pyo
[open]
[-] test_defaultdict.pyc
[open]
[-] test_dl.pyc
[open]
[-] test_poll.pyc
[open]
[-] test_xml_etree_c.py
[open]
[-] test_float.pyo
[open]
[-] test_sundry.py
[open]
[-] test_file2k.py
[open]
[-] test_email.py
[open]
[-] test_sax.pyc
[open]
[-] test_popen2.py
[open]
[-] test_xml_etree.py
[open]
[-] test_softspace.pyc
[open]
[-] test_ftplib.pyc
[open]
[-] test_winsound.pyo
[open]
[-] test_sunau.pyo
[open]
[-] test_symtable.py
[open]
[-] test_io.py
[open]
[-] test_runpy.pyc
[open]
[-] test_genexps.pyc
[open]
[-] test_errno.pyc
[open]
[-] test_imghdr.pyo
[open]
[-] test_complex.py
[open]
[+]
capath
[-] keycert4.pem
[open]
[-] test_codecmaps_hk.pyo
[open]
[-] test_long_future.py
[open]
[-] test_aepack.pyc
[open]
[-] test_abstract_numbers.py
[open]
[-] test_mutex.py
[open]
[-] test_doctest2.txt
[open]
[-] test_imgfile.pyc
[open]
[-] test_pdb.pyo
[open]
[-] test_marshal.py
[open]
[-] test_bdb.pyc
[open]
[-] test_module.py
[open]
[-] test_import_magic.pyc
[open]
[-] test_robotparser.py
[open]
[-] test_nntplib.pyo
[open]
[-] test_idle.py
[open]
[-] test_weakset.py
[open]
[-] test_pydoc.py
[open]
[-] test_source_encoding.pyo
[open]
[-] test_gdb.py
[open]
[-] test_operator.py
[open]
[-] test_imgfile.pyo
[open]
[-] math_testcases.txt
[open]
[-] test_codecmaps_hk.py
[open]
[-] test_iterlen.pyc
[open]
[-] test_heapq.pyo
[open]
[-] test_macostools.pyc
[open]
[-] test_multiprocessing.py
[open]
[-] test_dbm.pyo
[open]
[-] test_codecmaps_jp.pyo
[open]
[-] test_mimetools.pyc
[open]
[-] test_linecache.py
[open]
[-] test_rlcompleter.py
[open]
[-] test_urlparse.py
[open]
[-] test_pydoc.pyo
[open]
[-] test_list.pyo
[open]
[-] lock_tests.pyc
[open]
[-] test_str.pyo
[open]
[-] test_zipfile64.py
[open]
[-] test_traceback.py
[open]
[-] test_marshal.pyo
[open]
[-] test_tk.py
[open]
[-] test_largefile.pyo
[open]
[-] test_compileall.py
[open]
[-] test_macpath.pyc
[open]
[-] test_builtin.pyc
[open]
[-] win_console_handler.pyo
[open]
[-] bisect_cmd.py
[open]
[-] test_compile.pyc
[open]
[-] ssltests.py
[open]
[-] test_popen2.pyo
[open]
[-] test_stat.py
[open]
[-] test_unicode.pyo
[open]
[-] test_pkgutil.py
[open]
[-] testcodec.pyo
[open]
[-] test_ttk_textonly.pyc
[open]
[-] string_tests.pyo
[open]
[-] test_spwd.pyo
[open]
[-] threaded_import_hangers.py
[open]
[-] test_csv.py
[open]
[-] formatfloat_testcases.txt
[open]
[-] seq_tests.py
[open]
[-] test_ntpath.pyc
[open]
[-] test___all__.pyo
[open]
[-] test_memoryio.pyo
[open]
[-] test_MimeWriter.pyc
[open]
[-] test_anydbm.pyo
[open]
[-] test_shlex.py
[open]
[-] test_coercion.pyo
[open]
[-] test_hotshot.py
[open]
[-] test_colorsys.pyc
[open]
[-] inspect_fodder2.py
[open]
[-] test_index.pyc
[open]
[-] test_genericpath.pyc
[open]
[-] test_ucn.pyo
[open]
[-] test_winreg.pyc
[open]
[-] test_nntplib.pyc
[open]
[-] test_audioop.pyc
[open]
[-] test_applesingle.py
[open]
[-] test_compare.py
[open]
[-] test_sunaudiodev.pyo
[open]
[-] test_socket.pyo
[open]
[-] test_xmlrpc.py
[open]
[-] profilee.pyo
[open]
[-] test_buffer.pyc
[open]
[-] test_curses.py
[open]
[-] test_typechecks.py
[open]
[-] test_htmlparser.pyo
[open]
[-] test_gdbm.py
[open]
[-] test_rlcompleter.pyc
[open]
[-] list_tests.pyo
[open]
[-] test_buffer.py
[open]
[-] badsyntax_future9.py
[open]
[-] cmath_testcases.txt
[open]
[-] test_pickletools.pyc
[open]
[-] test_doctest2.py
[open]
[-] test_getopt.pyc
[open]
[-] test_aifc.py
[open]
[-] test_tools.pyc
[open]
[-] audiotests.py
[open]
[-] test_time.pyo
[open]
[-] test_gettext.py
[open]
[-] test_strtod.py
[open]
[-] test_threadedtempfile.py
[open]
[-] test_mhlib.pyc
[open]
[-] __init__.pyc
[open]
[-] test_signal.py
[open]
[-] test_urllib2.py
[open]
[-] test_shutil.pyc
[open]
[-] test_userlist.pyc
[open]
[-] test_aifc.pyo
[open]
[-] inspect_fodder.py
[open]
[-] bisect_cmd.pyo
[open]
[-] test_winreg.pyo
[open]
[-] test_unpack.py
[open]
[-] test_pipes.py
[open]
[-] test_xmllib.pyc
[open]
[-] relimport.pyo
[open]
[-] test_eof.pyc
[open]
[-] test_augassign.pyo
[open]
[-] test_contextlib.pyo
[open]
[-] test_os.pyc
[open]
[-] test_urlparse.pyc
[open]
[-] test_decorators.py
[open]
[-] test_bigaddrspace.py
[open]
[-] test_codecencodings_iso2022.py
[open]
[-] test_optparse.pyc
[open]
[-] test_dbm.pyc
[open]
[-] test_threadsignals.py
[open]
[-] test_doctest.txt
[open]
[-] test_ossaudiodev.py
[open]
[-] randv2_32.pck
[open]
[-] test_openpty.pyc
[open]
[-] test_module.pyc
[open]
[-] ffdh3072.pem
[open]
[-] ssl_key.pem
[open]
[-] test_charmapcodec.pyc
[open]
[-] test_tcl.pyc
[open]
[-] test_ntpath.pyo
[open]
[-] test_binascii.pyo
[open]
[-] test_imp.py
[open]
[-] test_base64.pyc
[open]
[-] test_csv.pyc
[open]
[-] test_wave.py
[open]
[-] test_wait4.pyo
[open]
[-] test_multibytecodec.pyo
[open]
[-] test_hashlib.py
[open]
[-] test_pwd.py
[open]
[-] test_wait4.pyc
[open]
[-] test_multibytecodec.py
[open]
[-] regrtest.py
[open]
[-] test_bufio.pyo
[open]
[-] test_opcodes.py
[open]
[-] test_profile.pyo
[open]
[-] __main__.py
[open]
[-] test_bastion.pyc
[open]
[-] test_httpservers.py
[open]
[-] badsyntax_future3.py
[open]
[-] test_cfgparser.pyo
[open]
[-] script_helper.pyc
[open]
[-] test_format.pyc
[open]
[-] greyrgb.uue
[open]
[-] test_strptime.pyo
[open]
[-] nokia.pem
[open]
[-] pydocfodder.pyo
[open]
[-] test_contains.pyo
[open]
[-] test_imageop.py
[open]
[-] test_bigmem.pyo
[open]
[-] test_crypt.py
[open]
[-] test_decimal.py
[open]
[-] test_generators.pyc
[open]
[-] test_mhlib.py
[open]
[-] test_old_mailbox.py
[open]
[-] test_sys_setprofile.py
[open]
[-] test_userstring.pyc
[open]
[-] test_codecencodings_jp.pyo
[open]
[-] test_stringprep.py
[open]
[-] test_cprofile.pyc
[open]
[-] test_curses.pyc
[open]
[-] test_spwd.py
[open]
[-] test_undocumented_details.pyc
[open]
[-] test_zipfile64.pyo
[open]
[-] test_format.pyo
[open]
[-] test_sunau.pyc
[open]
[-] test_anydbm.pyc
[open]
[-] test_subprocess.pyc
[open]
[-] test_unary.pyo
[open]
[-] test_bsddb.pyo
[open]
[-] multibytecodec_support.py
[open]
[-] test_stat.pyc
[open]
[-] test_time.pyc
[open]
[-] ssltests.pyc
[open]
[-] test_codecmaps_kr.py
[open]
[-] test_zlib.pyc
[open]
[-] test_slice.py
[open]
[-] test_import_magic.py
[open]
[-] test_tools.py
[open]
[-] test_thread.py
[open]
[-] test_math.pyc
[open]
[-] test_fcntl.pyc
[open]
[-] test_ascii_formatd.pyc
[open]
[-] test_enumerate.py
[open]
[-] test_file_eintr.py
[open]
[-] test_file.py
[open]
[-] test_minidom.pyo
[open]
[-] test_site.py.lib64
[open]
[-] exception_hierarchy.txt
[open]
[-] test_binop.py
[open]
[-] test_textwrap.pyc
[open]
[-] test_new.py
[open]
[-] test_urlparse.pyo
[open]
[-] test_py_compile.py
[open]
[-] test_cpickle.pyc
[open]
[-] test_macpath.pyo
[open]
[-] test_gzip.py
[open]
[-] test_popen.py
[open]
[-] test_long.pyc
[open]
[-] test_httpservers.pyo
[open]
[-] test_wave.pyc
[open]
[-] test_codecencodings_kr.pyc
[open]
[-] test_pkgimport.py
[open]
[-] test_setcomps.pyc
[open]
[-] test_md5.py
[open]
[-] test_mimetools.py
[open]
[-] test_posixpath.py
[open]
[-] test_peepholer.py
[open]
[-] test_bsddb185.py
[open]
[-] test_unicodedata.pyo
[open]
[-] test_future_builtins.py
[open]
[-] test_MimeWriter.py
[open]
[-] pycacert.pem
[open]
[-] test_StringIO.pyc
[open]
[-] test_capi.py
[open]
[-] test_shelve.py
[open]
[-] test_mimetypes.pyc
[open]
[-] test_os.pyo
[open]
[-] test_ascii_formatd.py
[open]
[-] test_peepholer.pyc
[open]
[-] test_whichdb.pyo
[open]
[-] test_descrtut.pyc
[open]
[-] test_codecmaps_jp.py
[open]
[-] test_memoryio.py
[open]
[-] test_index.pyo
[open]
[-] test_scriptpackages.pyo
[open]
[-] test_platform.pyo
[open]
[-] reperf.pyo
[open]
[-] audiotests.pyo
[open]
[-] test_asynchat.py
[open]
[-] test_asyncore.pyo
[open]
[-] test_exception_variations.pyc
[open]
[-] test__osx_support.pyc
[open]
[-] test_funcattrs.py
[open]
[-] test_iter.pyc
[open]
[-] test_parser.py
[open]
[-] test_warnings.pyo
[open]
[-] keycert2.pem
[open]
[-] test_getargs.pyo
[open]
[-] test_traceback.pyo
[open]
[-] test_importhooks.pyo
[open]
[-] test_idle.pyc
[open]
[-] sample_doctest_no_doctests.pyo
[open]
[-] test_int_literal.pyc
[open]
[-] test_support.py
[open]
[-] test_long_future.pyc
[open]
[-] test_urllib.py
[open]
[-] test_plistlib.py
[open]
[-] test_scriptpackages.pyc
[open]
[-] test_sysconfig.py
[open]
[-] script_helper.pyo
[open]
[-] test_sgmllib.py
[open]
[-] test_userstring.pyo
[open]
[-] test_dictviews.pyo
[open]
[-] test_descr.py
[open]
[-] test_decimal.pyc
[open]
[-] nullcert.pem
[open]
[-] test_glob.pyo
[open]
[-] test_future.pyc
[open]
[-] test_sundry.pyo
[open]
[-] test_cmd_line_script.py
[open]
[-] test_idle.pyo
[open]
[-] test_minidom.py
[open]
[-] test_rlcompleter.pyo
[open]
[-] test_epoll.pyc
[open]
[-] test_urllibnet.py
[open]
[-] autotest.pyc
[open]
[-] test_generators.pyo
[open]
[-] test_structmembers.pyc
[open]
[-] floating_points.txt
[open]
[-] test_weakref.py
[open]
[-] test_builtin.pyo
[open]
[-] test_itertools.pyo
[open]
[-] test_zipimport.pyo
[open]
[-] test_getopt.py
[open]
[-] test_new.pyc
[open]
[-] test_test_support.py
[open]
[-] test_binascii.py
[open]
[-] test_wait3.pyo
[open]
[-] test_strftime.pyc
[open]
[-] test_macos.pyc
[open]
[-] test_frozen.pyc
[open]
[-] test_md5.pyc
[open]
[-] test_startfile.pyo
[open]
[-] test_codeccallbacks.pyc
[open]
[-] test_email.pyc
[open]
[-] test_curses.pyo
[open]
[+]
support
[-] test_copy.pyo
[open]
[-] test_pow.pyc
[open]
[-] test_threading_local.py
[open]
[-] test_glob.pyc
[open]
[-] test_htmlparser.py
[open]
[-] test_platform.pyc
[open]
[-] test_pep277.pyc
[open]
[-] test_optparse.py
[open]
[-] test_logging.py
[open]
[-] test_file_eintr.pyc
[open]
[-] test_bisect.pyc
[open]
[-] test_htmllib.pyo
[open]
[-] test_cmath.pyc
[open]
[-] test_dbm.py
[open]
[-] test_binascii.pyc
[open]
[-] test_dictcomps.pyc
[open]
[-] test_locale.pyc
[open]
[-] test_random.pyo
[open]
[-] test_imp.pyo
[open]
[-] test_fileio.py
[open]
[-] test_anydbm.py
[open]
[-] test_tk.pyc
[open]
[-] test_dis.py
[open]
[-] test_ast.pyo
[open]
[-] list_tests.py
[open]
[-] test_plistlib.pyo
[open]
[-] test_select.pyc
[open]
[-] test_robotparser.pyo
[open]
[-] test_unicodedata.pyc
[open]
[-] test_ssl.py
[open]
[-] test_email_renamed.pyc
[open]
[-] test_errno.py
[open]
[-] test_call.pyo
[open]
[-] test_pkgimport.pyo
[open]
[-] test_signal.pyc
[open]
[-] test_io.pyo
[open]
[-] relimport.pyc
[open]
[-] test_ordered_dict.py
[open]
[-] test_tokenize.py
[open]
[-] test_unicodedata.py
[open]
[-] test_memoryio.pyc
[open]
[-] test_optparse.pyo
[open]
[-] test_imaplib.py
[open]
[-] test_glob.py
[open]
[-] test_pickletools.pyo
[open]
[-] test_enumerate.pyo
[open]
[-] test_fork1.pyc
[open]
[-] test_os.py
[open]
[-] test_ordered_dict.pyo
[open]
[-] test_email_codecs.pyo
[open]
[-] test_bisect.py
[open]
[-] test_sort.pyo
[open]
[-] test_py3kwarn.pyc
[open]
[-] test_codecmaps_tw.pyo
[open]
[-] test_zlib.py
[open]
[-] test_list.pyc
[open]
[-] test_wsgiref.pyo
[open]
[-] test_mailbox.pyc
[open]
[-] test_poll.pyo
[open]
[-] test_uu.pyc
[open]
[-] test_unicode_file.pyc
[open]
[-] test_ttk_guionly.py
[open]
[-] test_stat.pyo
[open]
[-] test_platform.py
[open]
[-] test_heapq.pyc
[open]
[-] test_ttk_textonly.pyo
[open]
[-] test_structseq.pyc
[open]
[-] test_complex.pyo
[open]
[-] test_macurl2path.pyo
[open]
[-] doctest_aliases.pyo
[open]
[-] test_dis.pyc
[open]
[-] test_bool.pyo
[open]
[-] test___future__.pyo
[open]
[-] test_pyexpat.py
[open]
[-] test_threadedtempfile.pyo
[open]
[-] test_nntplib.py
[open]
[-] test_regrtest.pyo
[open]
[-] test_ctypes.pyc
[open]
[-] test_copy_reg.pyc
[open]
[-] threaded_import_hangers.pyc
[open]
[-] win_console_handler.pyc
[open]
[-] test_strop.pyc
[open]
[-] test_profile.pyc
[open]
[-] test_codecencodings_hk.py
[open]
[-] test_codecmaps_cn.pyc
[open]
[-] test_cpickle.py
[open]
[-] test_functools.py
[open]
[-] test_int_literal.py
[open]
[-] test_wave.pyo
[open]
[-] test_distutils.py
[open]
[-] test_sha.pyc
[open]
[-] test_ttk_guionly.pyo
[open]
[-] test_grp.pyc
[open]
[-] test_float.pyc
[open]
[-] test_mimetools.pyo
[open]
[-] testall.py
[open]
[-] test_hash.pyo
[open]
[-] test_fileio.pyc
[open]
[-] test_funcattrs.pyc
[open]
[-] testall.pyo
[open]
[-] test_mutex.pyo
[open]
[-] test_buffer.pyo
[open]
[-] test_email_renamed.pyo
[open]
[-] test_math.pyo
[open]
[-] test_pickletools.py
[open]
[-] test_popen.pyc
[open]
[-] test_xml_etree.pyo
[open]
[-] test_xml_etree.pyc
[open]
[-] test_future4.py
[open]
[-] gdb_sample.py
[open]
[-] tf_inherit_check.py
[open]
[-] test_gdb.pyo
[open]
[-] test_macos.pyo
[open]
[-] test_getargs2.pyc
[open]
[-] test_ntpath.py
[open]
[-] test_trace.pyc
[open]
[-] test_cgi.py
[open]
[-] test_pyclbr.pyc
[open]
[-] test_frozen.py
[open]
[-] test_tarfile.pyc
[open]
[-] win_console_handler.py
[open]
[-] test_profile.py
[open]
[-] test_transformer.pyo
[open]
[-] fork_wait.py
[open]
[-] test_sys.pyc
[open]
[-] test_pyexpat.pyo
[open]
[-] test_slice.pyc
[open]
[-] outstanding_bugs.py
[open]
[-] test_sysconfig.pyc
[open]
[-] test_sax.py
[open]
[-] lock_tests.py
[open]
[-] test_univnewlines.pyc
[open]
[-] test_queue.py
[open]
[-] test_sets.pyo
[open]
[-] test_largefile.pyc
[open]
[-] test_pep247.py
[open]
[-] test_zipfile.pyo
[open]
[-] test_index.py
[open]
[-] test_eof.py
[open]
[-] test_urllib2_localnet.pyo
[open]
[-] test_hmac.pyc
[open]
[-] test_traceback.pyc
[open]
[-] test_module.pyo
[open]
[-] test_fcntl.pyo
[open]
[-] test_tcl.py
[open]
[-] test_cookielib.pyc
[open]
[-] test_hotshot.pyo
[open]
[-] test_bufio.py
[open]
[-] __main__.pyo
[open]
[-] test_tuple.py
[open]
[-] test_binhex.py
[open]
[-] test_ordered_dict.pyc
[open]
[-] test_socketserver.pyo
[open]
[-] test_rfc822.pyo
[open]
[-] test_urllibnet.pyc
[open]
[-] test_dummy_thread.pyo
[open]
[-] test_htmllib.py
[open]
[-] test_set.py
[open]
[-] test_coercion.py
[open]
[-] test_fileinput.pyc
[open]
[-] test_atexit.py
[open]
[-] badkey.pem
[open]
[-] test_frozen.pyo
[open]
[-] test_class.py
[open]
[-] test_logging.pyc
[open]
[-] test_weakset.pyc
[open]
[-] test_queue.pyc
[open]
[-] test_dictcomps.py
[open]
[-] test_urllib2.pyc
[open]
[-] test_multibytecodec.pyc
[open]
[-] test_normalization.py
[open]
[-] test_cmath.pyo
[open]
[-] test_imageop.pyo
[open]
[-] sortperf.py
[open]
[-] testrgb.uue
[open]
[-] test_sundry.pyc
[open]
[-] test_zlib.pyo
[open]
[-] test_cmd_line_script.pyc
[open]
[-] test__osx_support.py
[open]
[-] test_pow.py
[open]
[-] test_codeccallbacks.pyo
[open]
[-] test_hotshot.pyc
[open]
[-] test_aepack.pyo
[open]
[-] test_tokenize.pyo
[open]
[-] test_codecencodings_iso2022.pyo
[open]
[-] test_shlex.pyc
[open]
[-] badcert.pem
[open]
[-] test_atexit.pyo
[open]
[-] test_cmd.pyo
[open]
[-] test_rfc822.py
[open]
[-] test_fork1.pyo
[open]
[-] test_unittest.pyo
[open]
[-] test_trace.pyo
[open]
[+]
data
[-] mp_fork_bomb.pyc
[open]
[-] inspect_fodder2.pyc
[open]
[-] test_difflib.py
[open]
[-] test_dummy_threading.py
[open]
[-] test_kqueue.pyc
[open]
[-] test_dictcomps.pyo
[open]
[-] test_wait4.py
[open]
[-] test_genericpath.py
[open]
[-] test_fpformat.py
[open]
[-] test_resource.pyc
[open]
[-] test_ftplib.py
[open]
[-] test_pkgutil.pyc
[open]
[-] test_bool.pyc
[open]
[-] test_isinstance.py
[open]
[-] testtar.tar
[open]
[-] test_grammar.py
[open]
[-] test_cpickle.pyo
[open]
[-] test_bsddb3.pyc
[open]
[-] test_textwrap.py
[open]
[-] test_linuxaudiodev.py
[open]
[-] test_str.py
[open]
[-] test_print.pyo
[open]
[-] test_doctest2.pyo
[open]
[-] test_timeit.pyo
[open]
[-] test_gdbm.pyc
[open]
[-] test_pyclbr.pyo
[open]
[-] test_property.pyo
[open]
[-] test_file.pyo
[open]
[-] test_itertools.pyc
[open]
[-] test_urllib.pyc
[open]
[-] test_copy.py
[open]
[-] test_linuxaudiodev.pyc
[open]
[-] test_ioctl.py
[open]
[-] test_userdict.pyc
[open]
[-] test_minidom.pyc
[open]
[-] test_argparse.pyo
[open]
[-] test_netrc.pyo
[open]
[-] test_zipfile.py
[open]
[-] test_operator.pyo
[open]
[-] test_whichdb.py
[open]
[-] symlink_support.pyo
[open]
[-] test_dictviews.py
[open]
[-] test_md5.pyo
[open]
[-] test_tk.pyo
[open]
[-] outstanding_bugs.pyo
[open]
[-] test_asyncore.pyc
[open]
[-] pickletester.py
[open]
[-] test_spwd.pyc
[open]
[-] test_colorsys.pyo
[open]
[-] test_sgmllib.pyo
[open]
[-] inspect_fodder2.pyo
[open]
[-] test_cookielib.pyo
[open]
[-] test_genexps.py
[open]
[-] sample_doctest_no_doctests.pyc
[open]
[-] test_quopri.pyc
[open]
[-] test_unpack.pyc
[open]
[-] test_turtle.pyo
[open]
[-] test_compile.pyo
[open]
[-] test_codecmaps_kr.pyo
[open]
[-] test_format.py
[open]
[-] test_importlib.pyo
[open]
[-] test_strftime.pyo
[open]
[-] test_filecmp.pyo
[open]
[-] infinite_reload.py
[open]
[-] test_normalization.pyo
[open]
[-] test_gc.py
[open]
[-] outstanding_bugs.pyc
[open]
[-] test_xpickle.py
[open]
[-] test_commands.pyc
[open]
[-] test_collections.pyo
[open]
[-] test_complex_args.pyc
[open]
[-] test_xdrlib.pyo
[open]
[-] test_strptime.pyc
[open]
[-] test_softspace.py
[open]
[-] test_pwd.pyo
[open]
[-] test_SimpleHTTPServer.pyc
[open]
[-] test_lib2to3.py
[open]
[-] test_zipimport_support.py
[open]
[-] test_coercion.pyc
[open]
[-] test_bsddb3.pyo
[open]
[-] test_py3kwarn.pyo
[open]
[-] test_print.pyc
[open]
[-] test_sys_settrace.pyo
[open]
[-] test_codecencodings_kr.py
[open]
[-] test_bdb.pyo
[open]
[-] test_robotparser.pyc
[open]
[-] test_pep247.pyo
[open]
[-] test_ssl.pyc
[open]
[-] test_scriptpackages.py
[open]
[-] test_binop.pyc
[open]
[-] test_atexit.pyc
[open]
[-] test_unicode.pyc
[open]
[-] test_cl.pyc
[open]
[-] test_charmapcodec.pyo
[open]
[-] test_descr.pyc
[open]
[-] test_fractions.pyo
[open]
[-] test_difflib.pyo
[open]
[-] test_getargs.pyc
[open]
[-] test_fpformat.pyo
[open]
[-] test_asyncore.py
[open]
[-] test_posix.pyo
[open]
[-] test_bsddb185.pyo
[open]
[-] test_inspect.pyc
[open]
[+]
subprocessdata
[-] test_winsound.py
[open]
[-] test_poplib.pyo
[open]
[-] gdb_sample.pyo
[open]
[-] pythoninfo.pyc
[open]
[-] test_pydoc.pyc
[open]
[-] test_dumbdbm.pyo
[open]
[-] test_pdb.pyc
[open]
[-] test_commands.pyo
[open]
[-] test_bisect.pyo
[open]
[-] test_bdb.py
[open]
[-] test_richcmp.py
[open]
[-] test_array.pyc
[open]
[-] pickletester.pyc
[open]
[-] test_binhex.pyc
[open]
[-] sample_doctest_no_docstrings.pyc
[open]
[-] test_cprofile.pyo
[open]
[-] test_scope.pyo
[open]
[-] test_sqlite.pyc
[open]
[-] test_htmllib.pyc
[open]
[-] test_imghdr.pyc
[open]
[+]
audiodata
[-] test_unicode.py
[open]
[-] test_difflib.pyc
[open]
[-] test_aifc.pyc
[open]
[-] test_complex.pyc
[open]
[-] test_MimeWriter.pyo
[open]
[-] test_iterlen.pyo
[open]
[-] test_openpty.py
[open]
[-] test_bz2.pyc
[open]
[-] warning_tests.py
[open]
[-] test_smtplib.pyc
[open]
[-] test_timeit.pyc
[open]
[-] test_augassign.py
[open]
[-] test_codecmaps_jp.pyc
[open]
[-] test_longexp.py
[open]
[-] test_grp.pyo
[open]
[-] test_cmd.pyc
[open]
[-] test_doctest.pyo
[open]
[-] test_multiprocessing.pyo
[open]
[-] test_iter.pyo
[open]
[-] test_calendar.pyo
[open]
[-] test_global.py
[open]
[-] test_distutils.pyc
[open]
[-] test_pickle.py
[open]
[-] test_ctypes.py
[open]
[-] test_htmlparser.pyc
[open]
[-] test_ascii_formatd.pyo
[open]
[-] test_long.py
[open]
[-] test_regrtest.py
[open]
[-] test_difflib_expect.html
[open]
[-] test_modulefinder.pyo
[open]
[-] test_augassign.pyc
[open]
[-] mp_fork_bomb.py
[open]
[-] test_random.py
[open]
[-] test_codeop.pyc
[open]
[-] test_ucn.py
[open]
[-] test_exceptions.pyc
[open]
[-] test_import.pyc
[open]
[-] test_marshal.pyc
[open]
[-] reperf.py
[open]
[-] test_decorators.pyo
[open]
[-] test_future4.pyo
[open]
[-] test_whichdb.pyc
[open]
[-] test_strop.py
[open]
[-] test_compileall.pyo
[open]
[-] test_gc.pyc
[open]
[-] test_select.py
[open]
[-] seq_tests.pyo
[open]
[-] test_weakref.pyo
[open]
[-] test_crypt.pyc
[open]
[-] test__locale.pyo
[open]
[-] test_hmac.pyo
[open]
[+]
decimaltestdata
[-] test_univnewlines2k.pyc
[open]
[-] test_userdict.py
[open]
[-] test_xml_etree_c.pyc
[open]
[-] test_SimpleHTTPServer.py
[open]
[-] test_shlex.pyo
[open]
[-] infinite_reload.pyo
[open]
[-] test_future3.pyc
[open]
[-] test_userstring.py
[open]
[-] testcodec.py
[open]
[-] pythoninfo.py
[open]
[-] test_opcodes.pyo
[open]
[-] test_hashlib.pyc
[open]
[-] test_string.py
[open]
[-] test_call.py
[open]
[-] test_pipes.pyo
[open]
[-] test_locale.pyo
[open]
[-] test_sort.pyc
[open]
[-] test_distutils.pyo
[open]
[-] test_sunaudiodev.py
[open]
[-] pydocfodder.py
[open]
[-] curses_tests.pyo
[open]
[-] xmltests.pyo
[open]
[-] test_codecencodings_jp.pyc
[open]
[-] test_poplib.py
[open]
[-] test_uu.pyo
[open]
[-] warning_tests.pyo
[open]
[-] test_struct.pyc
[open]
[-] test_pprint.pyc
[open]
[-] test_mimetypes.py
[open]
[-] test_random.pyc
[open]
[-] test_syntax.pyo
[open]
[-] test_sort.py
[open]
[-] test_logging.pyo
[open]
[-] test_genericpath.pyo
[open]
[-] test_cprofile.py
[open]
[-] test_site.pyc
[open]
[-] test_long_future.pyo
[open]
[-] test_select.pyo
[open]
[-] test_codecs.pyc
[open]
[-] pyclbr_input.py
[open]
[+]
cjkencodings
[-] test_linecache.pyc
[open]
[-] test_abstract_numbers.pyo
[open]
[-] test_repr.pyc
[open]
[-] test_startfile.py
[open]
[-] test_future5.pyc
[open]
[-] test_threading_local.pyo
[open]
[-] test_py_compile.pyc
[open]
[-] test_mutex.pyc
[open]
[-] test_cd.pyc
[open]
[-] test_socketserver.pyc
[open]
[-] ssl_servers.pyc
[open]
[-] infinite_reload.pyc
[open]
[-] test_filecmp.py
[open]
[-] autotest.pyo
[open]
[-] test_aepack.py
[open]
[-] test_docxmlrpc.py
[open]
[-] pydoc_mod.py
[open]
[-] __init__.py
[open]
[-] test_cmd.py
[open]
[-] test_datetime.pyo
[open]
[-] test_gdbm.pyo
[open]
[-] test_base64.pyo
[open]
[-] test_dumbdbm.py
[open]
[-] test_threading.pyo
[open]
[-] test_turtle.py
[open]
[-] test_kqueue.pyo
[open]
[-] test_errno.pyo
[open]
[-] test_wait3.py
[open]
[-] test_mailbox.pyo
[open]
[-] test_dummy_threading.pyo
[open]
[-] test_smtplib.pyo
[open]
[-] test_normalization.pyc
[open]
[-] test_posix.pyc
[open]
[-] test_poplib.pyc
[open]
[-] test_readline.py
[open]
[-] sample_doctest.pyo
[open]
[-] test_operator.pyc
[open]
[-] test_gl.pyo
[open]
[-] test_posixpath.pyo
[open]
[-] test_sunaudiodev.pyc
[open]
[-] test_pstats.pyc
[open]
[-] test_filecmp.pyc
[open]
[-] test_warnings.py
[open]
[-] test_uuid.pyo
[open]
[-] test_class.pyc
[open]
[-] test_future5.pyo
[open]
[-] test_support.pyc
[open]
[-] test__locale.pyc
[open]
[-] test_re.pyc
[open]
[-] test_tempfile.pyc
[open]
[-] test_memoryview.pyo
[open]
[-] test_httplib.pyo
[open]
[-] test_file2k.py.stdin-test
[open]
[-] threaded_import_hangers.pyo
[open]
[-] test_codecencodings_cn.pyc
[open]
[-] mapping_tests.py
[open]
[-] test_multifile.py
[open]
[-] test_cd.py
[open]
[-] test_subprocess.pyo
[open]
[-] tf_inherit_check.pyc
[open]
[-] test_mutants.pyo
[open]
[-] test_global.pyo
[open]
[-] test_future.py
[open]
[-] test_exceptions.pyo
[open]
[-] test_compiler.pyo
[open]
[-] test_fnmatch.pyo
[open]
[-] test_pdb.py
[open]
[-] ieee754.txt
[open]
[-] test_exceptions.py
[open]
[-] test_cmath.py
[open]
[-] test_copy_reg.pyo
[open]
[-] test_site.pyo
[open]
[-] test_xdrlib.pyc
[open]
[-] test_mailcap.py
[open]
[-] test_pep352.pyc
[open]
[+]
tracedmodules
[-] test_tokenize.pyc
[open]
[-] test_bytes.py
[open]
[-] make_ssl_certs.pyc
[open]
[-] doctest_aliases.py
[open]
[-] test_subprocess.py
[open]
[-] test_defaultdict.pyo
[open]
[-] test_smtpnet.py
[open]
[-] randv3.pck
[open]
[-] test_timeout.pyo
[open]
[-] string_tests.py
[open]
[-] test_fileio.pyo
[open]
[-] test_modulefinder.py
[open]
[-] test_hash.pyc
[open]
[-] test_dl.pyo
[open]
[-] keycert3.pem
[open]
[-] test_sgmllib.pyc
[open]
[-] test_tarfile.pyo
[open]
[-] pystone.pyo
[open]
[-] test_resource.pyo
[open]
[-] test_cmd_line.pyc
[open]
[-] test_codecencodings_tw.pyo
[open]
[-] test_userlist.pyo
[open]
[-] test_macurl2path.py
[open]
[-] test_collections.py
[open]
[-] test_sys.py
[open]
[-] test_bigmem.py
[open]
[-] test_xmlrpc.pyc
[open]
[-] test_sqlite.pyo
[open]
[-] test_contains.py
[open]
[-] test_unary.py
[open]
[-] test_poll.py
[open]
[-] test_longexp.pyc
[open]
[-] test_threadedtempfile.pyc
[open]
[-] test_lib2to3.pyo
[open]
[-] test_macurl2path.pyc
[open]
[-] pickletester.pyo
[open]
[-] test_msilib.pyo
[open]
[-] test_future1.pyo
[open]
[-] test_hashlib.pyo
[open]
[-] test_hash.py
[open]
[-] test_doctest3.txt
[open]
[-] test_unicode_file.py
[open]
[-] test_socketserver.py
[open]
[-] test_deque.py
[open]
[-] test_future1.py
[open]
[-] test_msilib.py
[open]
[-] test_test_support.pyc
[open]
[-] test_set.pyc
[open]
[-] test_functools.pyo
[open]
[-] test_re.py
[open]
[-] test_macpath.py
[open]
[-] test_inspect.py
[open]
[-] test_codecs.pyo
[open]
[-] test_commands.py
[open]
[-] test_weakref.pyc
[open]
[-] test_fnmatch.pyc
[open]
[-] test_posixpath.pyc
[open]
[-] test_tcl.pyo
[open]
[-] test_turtle.pyc
[open]
[-] test_int_literal.pyo
[open]
[-] test_sys_settrace.py
[open]
[-] test_transformer.py
[open]
[-] allsans.pem
[open]
[-] test_complex_args.py
[open]
[-] test_threading.pyc
[open]
[-] test_lib2to3.pyc
[open]
[-] test_ssl.pyo
[open]
[-] test_xml_etree_c.pyo
[open]
[-] test_isinstance.pyc
[open]
[-] pyclbr_input.pyc
[open]
[-] test_tuple.pyc
[open]
[-] test_docxmlrpc.pyc
[open]
[-] test_compare.pyc
[open]
[-] test_property.py
[open]
[-] test_cl.pyo
[open]
[+]
xmltestdata
[-] test_codecmaps_cn.pyo
[open]
[-] test_threaded_import.py
[open]
[-] test_types.py
[open]
[-] test_quopri.py
[open]
[-] test_exception_variations.py
[open]
[-] test_file2k.pyo
[open]
[-] test_pstats.pyo
[open]
[-] test_call.pyc
[open]
[-] test_pep277.pyo
[open]
[-] test_mutants.pyc
[open]
[-] test_int.pyc
[open]
[-] test_mailcap.pyc
[open]
[-] test_syntax.py
[open]
[-] test_xmllib.pyo
[open]
[-] test_ensurepip.pyo
[open]
[-] test_file_eintr.pyo
[open]
[-] test_ioctl.pyc
[open]
[-] test_linecache.pyo
[open]
[-] test_iter.py
[open]
[-] test_isinstance.pyo
[open]
[-] test_strptime.py
[open]
[-] test_descrtut.py
[open]
[-] test_sha.py
[open]
[-] test_codecencodings_kr.pyo
[open]
[-] test_importhooks.pyc
[open]
[-] badsyntax_future5.py
[open]
[-] test_memoryview.pyc
[open]
[-] badsyntax_nocaret.py
[open]
[-] test_iterlen.py
[open]
[-] test_email_renamed.py
[open]
[-] seq_tests.pyc
[open]
[-] test_imageop.pyc
[open]
[-] bad_coding3.py
[open]
[-] test_import.pyo
[open]
[-] test_opcodes.pyc
[open]
[-] make_ssl_certs.py
[open]
[-] test_types.pyo
[open]
[-] test_decimal.pyo
[open]
[-] test_univnewlines.pyo
[open]
[-] test_sqlite.py
[open]
[-] test_queue.pyo
[open]
[-] test_posix.py
[open]
[-] sample_doctest_no_docstrings.py
[open]
[-] test_macostools.py
[open]
[-] test_threaded_import.pyo
[open]
[-] test_sysconfig.pyo
[open]
[-] test_openpty.pyo
[open]
[-] test_pty.pyc
[open]
[-] test_ensurepip.pyc
[open]
[-] test_StringIO.pyo
[open]
[-] curses_tests.pyc
[open]
[-] test_multiprocessing.pyc
[open]
[-] test_shutil.py
[open]
[-] test_al.py
[open]
[-] test_cd.pyo
[open]
[-] test_email_codecs.pyc
[open]
[-] test_telnetlib.pyo
[open]
[-] test_doctest4.txt
[open]
[-] curses_tests.py
[open]
[-] test_future4.pyc
[open]
[-] test_weakset.pyo
[open]
[-] test_ttk_guionly.pyc
[open]
[-] test_codecencodings_cn.py
[open]
[-] test_applesingle.pyo
[open]
[-] mapping_tests.pyo
[open]
[-] cfgparser.1
[open]
[-] test_codecencodings_jp.py
[open]
[-] test_pkg.py
[open]
[-] test_codecmaps_hk.pyc
[open]
[-] test_exception_variations.pyo
[open]
[-] test_old_mailbox.pyo
[open]
[-] test_future.pyo
[open]
[-] Sine-1000Hz-300ms.aif
[open]
[-] test_strop.pyo
[open]
[-] test_asynchat.pyc
[open]
[-] test_float.py
[open]
[-] test_epoll.pyo
[open]
[-] test_source_encoding.pyc
[open]
[-] test_int.pyo
[open]
[-] test_future2.pyc
[open]
[-] test_zipimport_support.pyc
[open]
[-] test_applesingle.pyc
[open]
[-] test_fnmatch.py
[open]
[-] test_future3.pyo
[open]
[-] test_extcall.py
[open]
[-] bisect_cmd.pyc
[open]
[-] test_StringIO.py
[open]
[-] test_imgfile.py
[open]
[-] test_quopri.pyo
[open]
[-] test_list.py
[open]
[-] test_sha.pyo
[open]
[-] test_bigaddrspace.pyo
[open]
[-] test_tempfile.py
[open]
[-] make_ssl_certs.pyo
[open]
[-] time_hashlib.pyo
[open]
[-] test_codecencodings_tw.py
[open]
[-] test_setcomps.py
[open]
[-] test_threading_local.pyc
[open]
[-] sample_doctest_no_docstrings.pyo
[open]
[-] test_ftplib.pyo
[open]
[-] test_binop.pyo
[open]
[-] test_file2k.pyc
[open]
[-] reperf.pyc
[open]
[-] test_dict.py
[open]
[-] test_pep277.py
[open]
[-] test_largefile.py
[open]
[-] test_xrange.pyo
[open]
[-] test_new.pyo
[open]
[-] test_class.pyo
[open]
[-] fork_wait.pyc
[open]
[-] ssl_servers.py
[open]
[-] test_dl.py
[open]
[-] test_audioop.py
[open]
[-] test_strtod.pyc
[open]
[-] test_sunau.py
[open]
[-] __init__.pyo
[open]
[-] test_cgi.pyc
[open]
[-] test_textwrap.pyo
[open]
[-] test_tarfile.py
[open]
[-] test_pkgutil.pyo
[open]
[-] test_fileinput.py
[open]
[-] test_array.pyo
[open]
[-] test_copy.pyc
[open]
[-] test_future5.py
[open]
[-] test_dummy_threading.pyc
[open]
[-] test_urllib2net.pyc
[open]
[-] test_scope.py
[open]
[-] test_code.pyc
[open]
[-] test_signal.pyo
[open]
[-] test_xpickle.pyc
[open]
[-] test_epoll.py
[open]
[-] test_httplib.py
[open]
[-] testall.pyc
[open]
[-] test_sys_setprofile.pyc
[open]
[-] test_dummy_thread.pyc
[open]
[-] test_ast.pyc
[open]
[-] test_timeit.py
[open]
[-] test_descrtut.pyo
[open]
[-] test_doctest2.pyc
[open]
[-] test_pep247.pyc
[open]
[-] test_import_magic.pyo
[open]
[-] test_compare.pyo
[open]
[-] test_urllib2.pyo
[open]
[-] test_source_encoding.py
[open]
[-] test_fpformat.pyc
[open]
[-] __main__.pyc
[open]
[-] test_bytes.pyc
[open]
[-] test_contextlib.py
[open]
[-] test_codecencodings_hk.pyc
[open]
[-] test_codeop.py
[open]
[-] test_re.pyo
[open]
[-] test_heapq.py
[open]
[-] test_typechecks.pyo
[open]
[-] test_transformer.pyc
[open]
[-] _mock_backport.py
[open]
[-] test_long.pyo
[open]
[-] test_support.pyo
[open]