PATH:
usr
/
lib64
/
python2.7
/
test
import httplib import itertools import array import StringIO import socket import errno import os import tempfile import unittest TestCase = unittest.TestCase from test import test_support here = os.path.dirname(__file__) # Self-signed cert file for 'localhost' CERT_localhost = os.path.join(here, 'keycert.pem') # Self-signed cert file for 'fakehostname' CERT_fakehostname = os.path.join(here, 'keycert2.pem') # Self-signed cert file for self-signed.pythontest.net CERT_selfsigned_pythontestdotnet = os.path.join(here, 'selfsigned_pythontestdotnet.pem') HOST = test_support.HOST class FakeSocket: def __init__(self, text, fileclass=StringIO.StringIO, host=None, port=None): self.text = text self.fileclass = fileclass self.data = '' self.file_closed = False self.host = host self.port = port def sendall(self, data): self.data += ''.join(data) def makefile(self, mode, bufsize=None): if mode != 'r' and mode != 'rb': raise httplib.UnimplementedFileMode() # keep the file around so we can check how much was read from it self.file = self.fileclass(self.text) self.file.close = self.file_close #nerf close () return self.file def file_close(self): self.file_closed = True def close(self): pass class EPipeSocket(FakeSocket): def __init__(self, text, pipe_trigger): # When sendall() is called with pipe_trigger, raise EPIPE. FakeSocket.__init__(self, text) self.pipe_trigger = pipe_trigger def sendall(self, data): if self.pipe_trigger in data: raise socket.error(errno.EPIPE, "gotcha") self.data += data def close(self): pass class NoEOFStringIO(StringIO.StringIO): """Like StringIO, but raises AssertionError on EOF. This is used below to test that httplib doesn't try to read more from the underlying file than it should. """ def read(self, n=-1): data = StringIO.StringIO.read(self, n) if data == '': raise AssertionError('caller tried to read past EOF') return data def readline(self, length=None): data = StringIO.StringIO.readline(self, length) if data == '': raise AssertionError('caller tried to read past EOF') return data class HeaderTests(TestCase): def test_auto_headers(self): # Some headers are added automatically, but should not be added by # .request() if they are explicitly set. class HeaderCountingBuffer(list): def __init__(self): self.count = {} def append(self, item): kv = item.split(':') if len(kv) > 1: # item is a 'Key: Value' header string lcKey = kv[0].lower() self.count.setdefault(lcKey, 0) self.count[lcKey] += 1 list.append(self, item) for explicit_header in True, False: for header in 'Content-length', 'Host', 'Accept-encoding': conn = httplib.HTTPConnection('example.com') conn.sock = FakeSocket('blahblahblah') conn._buffer = HeaderCountingBuffer() body = 'spamspamspam' headers = {} if explicit_header: headers[header] = str(len(body)) conn.request('POST', '/', body, headers) self.assertEqual(conn._buffer.count[header.lower()], 1) def test_content_length_0(self): class ContentLengthChecker(list): def __init__(self): list.__init__(self) self.content_length = None def append(self, item): kv = item.split(':', 1) if len(kv) > 1 and kv[0].lower() == 'content-length': self.content_length = kv[1].strip() list.append(self, item) # Here, we're testing that methods expecting a body get a # content-length set to zero if the body is empty (either None or '') bodies = (None, '') methods_with_body = ('PUT', 'POST', 'PATCH') for method, body in itertools.product(methods_with_body, bodies): conn = httplib.HTTPConnection('example.com') conn.sock = FakeSocket(None) conn._buffer = ContentLengthChecker() conn.request(method, '/', body) self.assertEqual( conn._buffer.content_length, '0', 'Header Content-Length incorrect on {}'.format(method) ) # For these methods, we make sure that content-length is not set when # the body is None because it might cause unexpected behaviour on the # server. methods_without_body = ( 'GET', 'CONNECT', 'DELETE', 'HEAD', 'OPTIONS', 'TRACE', ) for method in methods_without_body: conn = httplib.HTTPConnection('example.com') conn.sock = FakeSocket(None) conn._buffer = ContentLengthChecker() conn.request(method, '/', None) self.assertEqual( conn._buffer.content_length, None, 'Header Content-Length set for empty body on {}'.format(method) ) # If the body is set to '', that's considered to be "present but # empty" rather than "missing", so content length would be set, even # for methods that don't expect a body. for method in methods_without_body: conn = httplib.HTTPConnection('example.com') conn.sock = FakeSocket(None) conn._buffer = ContentLengthChecker() conn.request(method, '/', '') self.assertEqual( conn._buffer.content_length, '0', 'Header Content-Length incorrect on {}'.format(method) ) # If the body is set, make sure Content-Length is set. for method in itertools.chain(methods_without_body, methods_with_body): conn = httplib.HTTPConnection('example.com') conn.sock = FakeSocket(None) conn._buffer = ContentLengthChecker() conn.request(method, '/', ' ') self.assertEqual( conn._buffer.content_length, '1', 'Header Content-Length incorrect on {}'.format(method) ) def test_putheader(self): conn = httplib.HTTPConnection('example.com') conn.sock = FakeSocket(None) conn.putrequest('GET','/') conn.putheader('Content-length',42) self.assertIn('Content-length: 42', conn._buffer) conn.putheader('Foo', ' bar ') self.assertIn(b'Foo: bar ', conn._buffer) conn.putheader('Bar', '\tbaz\t') self.assertIn(b'Bar: \tbaz\t', conn._buffer) conn.putheader('Authorization', 'Bearer mytoken') self.assertIn(b'Authorization: Bearer mytoken', conn._buffer) conn.putheader('IterHeader', 'IterA', 'IterB') self.assertIn(b'IterHeader: IterA\r\n\tIterB', conn._buffer) conn.putheader('LatinHeader', b'\xFF') self.assertIn(b'LatinHeader: \xFF', conn._buffer) conn.putheader('Utf8Header', b'\xc3\x80') self.assertIn(b'Utf8Header: \xc3\x80', conn._buffer) conn.putheader('C1-Control', b'next\x85line') self.assertIn(b'C1-Control: next\x85line', conn._buffer) conn.putheader('Embedded-Fold-Space', 'is\r\n allowed') self.assertIn(b'Embedded-Fold-Space: is\r\n allowed', conn._buffer) conn.putheader('Embedded-Fold-Tab', 'is\r\n\tallowed') self.assertIn(b'Embedded-Fold-Tab: is\r\n\tallowed', conn._buffer) conn.putheader('Key Space', 'value') self.assertIn(b'Key Space: value', conn._buffer) conn.putheader('KeySpace ', 'value') self.assertIn(b'KeySpace : value', conn._buffer) conn.putheader(b'Nonbreak\xa0Space', 'value') self.assertIn(b'Nonbreak\xa0Space: value', conn._buffer) conn.putheader(b'\xa0NonbreakSpace', 'value') self.assertIn(b'\xa0NonbreakSpace: value', conn._buffer) def test_ipv6host_header(self): # Default host header on IPv6 transaction should be wrapped by [] if # it is an IPv6 address expected = 'GET /foo HTTP/1.1\r\nHost: [2001::]:81\r\n' \ 'Accept-Encoding: identity\r\n\r\n' conn = httplib.HTTPConnection('[2001::]:81') sock = FakeSocket('') conn.sock = sock conn.request('GET', '/foo') self.assertTrue(sock.data.startswith(expected)) expected = 'GET /foo HTTP/1.1\r\nHost: [2001:102A::]\r\n' \ 'Accept-Encoding: identity\r\n\r\n' conn = httplib.HTTPConnection('[2001:102A::]') sock = FakeSocket('') conn.sock = sock conn.request('GET', '/foo') self.assertTrue(sock.data.startswith(expected)) def test_malformed_headers_coped_with(self): # Issue 19996 body = "HTTP/1.1 200 OK\r\nFirst: val\r\n: nval\r\nSecond: val\r\n\r\n" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock) resp.begin() self.assertEqual(resp.getheader('First'), 'val') self.assertEqual(resp.getheader('Second'), 'val') def test_malformed_truncation(self): # Other malformed header lines, especially without colons, used to # cause the rest of the header section to be truncated resp = ( b'HTTP/1.1 200 OK\r\n' b'Public-Key-Pins: \n' b'pin-sha256="xxx=";\n' b'report-uri="https://..."\r\n' b'Transfer-Encoding: chunked\r\n' b'\r\n' b'4\r\nbody\r\n0\r\n\r\n' ) resp = httplib.HTTPResponse(FakeSocket(resp)) resp.begin() self.assertIsNotNone(resp.getheader('Public-Key-Pins')) self.assertEqual(resp.getheader('Transfer-Encoding'), 'chunked') self.assertEqual(resp.read(), b'body') def test_blank_line_forms(self): # Test that both CRLF and LF blank lines can terminate the header # section and start the body for blank in (b'\r\n', b'\n'): resp = b'HTTP/1.1 200 OK\r\n' b'Transfer-Encoding: chunked\r\n' resp += blank resp += b'4\r\nbody\r\n0\r\n\r\n' resp = httplib.HTTPResponse(FakeSocket(resp)) resp.begin() self.assertEqual(resp.getheader('Transfer-Encoding'), 'chunked') self.assertEqual(resp.read(), b'body') resp = b'HTTP/1.0 200 OK\r\n' + blank + b'body' resp = httplib.HTTPResponse(FakeSocket(resp)) resp.begin() self.assertEqual(resp.read(), b'body') # A blank line ending in CR is not treated as the end of the HTTP # header section, therefore header fields following it should be # parsed if possible resp = ( b'HTTP/1.1 200 OK\r\n' b'\r' b'Name: value\r\n' b'Transfer-Encoding: chunked\r\n' b'\r\n' b'4\r\nbody\r\n0\r\n\r\n' ) resp = httplib.HTTPResponse(FakeSocket(resp)) resp.begin() self.assertEqual(resp.getheader('Transfer-Encoding'), 'chunked') self.assertEqual(resp.read(), b'body') # No header fields nor blank line resp = b'HTTP/1.0 200 OK\r\n' resp = httplib.HTTPResponse(FakeSocket(resp)) resp.begin() self.assertEqual(resp.read(), b'') def test_from_line(self): # The parser handles "From" lines specially, so test this does not # affect parsing the rest of the header section resp = ( b'HTTP/1.1 200 OK\r\n' b'From start\r\n' b' continued\r\n' b'Name: value\r\n' b'From middle\r\n' b' continued\r\n' b'Transfer-Encoding: chunked\r\n' b'From end\r\n' b'\r\n' b'4\r\nbody\r\n0\r\n\r\n' ) resp = httplib.HTTPResponse(FakeSocket(resp)) resp.begin() self.assertIsNotNone(resp.getheader('Name')) self.assertEqual(resp.getheader('Transfer-Encoding'), 'chunked') self.assertEqual(resp.read(), b'body') resp = ( b'HTTP/1.0 200 OK\r\n' b'From alone\r\n' b'\r\n' b'body' ) resp = httplib.HTTPResponse(FakeSocket(resp)) resp.begin() self.assertEqual(resp.read(), b'body') def test_parse_all_octets(self): # Ensure no valid header field octet breaks the parser body = ( b'HTTP/1.1 200 OK\r\n' b"!#$%&'*+-.^_`|~: value\r\n" # Special token characters b'VCHAR: ' + bytearray(range(0x21, 0x7E + 1)) + b'\r\n' b'obs-text: ' + bytearray(range(0x80, 0xFF + 1)) + b'\r\n' b'obs-fold: text\r\n' b' folded with space\r\n' b'\tfolded with tab\r\n' b'Content-Length: 0\r\n' b'\r\n' ) sock = FakeSocket(body) resp = httplib.HTTPResponse(sock) resp.begin() self.assertEqual(resp.getheader('Content-Length'), '0') self.assertEqual(resp.getheader("!#$%&'*+-.^_`|~"), 'value') vchar = ''.join(map(chr, range(0x21, 0x7E + 1))) self.assertEqual(resp.getheader('VCHAR'), vchar) self.assertIsNotNone(resp.getheader('obs-text')) folded = resp.getheader('obs-fold') self.assertTrue(folded.startswith('text')) self.assertIn(' folded with space', folded) self.assertTrue(folded.endswith('folded with tab')) def test_invalid_headers(self): conn = httplib.HTTPConnection('example.com') conn.sock = FakeSocket('') conn.putrequest('GET', '/') # http://tools.ietf.org/html/rfc7230#section-3.2.4, whitespace is no # longer allowed in header names cases = ( (b'Invalid\r\nName', b'ValidValue'), (b'Invalid\rName', b'ValidValue'), (b'Invalid\nName', b'ValidValue'), (b'\r\nInvalidName', b'ValidValue'), (b'\rInvalidName', b'ValidValue'), (b'\nInvalidName', b'ValidValue'), (b' InvalidName', b'ValidValue'), (b'\tInvalidName', b'ValidValue'), (b'Invalid:Name', b'ValidValue'), (b':InvalidName', b'ValidValue'), (b'ValidName', b'Invalid\r\nValue'), (b'ValidName', b'Invalid\rValue'), (b'ValidName', b'Invalid\nValue'), (b'ValidName', b'InvalidValue\r\n'), (b'ValidName', b'InvalidValue\r'), (b'ValidName', b'InvalidValue\n'), ) for name, value in cases: with self.assertRaisesRegexp(ValueError, 'Invalid header'): conn.putheader(name, value) class HttpMethodTests(TestCase): def test_invalid_method_names(self): methods = ( 'GET\r', 'POST\n', 'PUT\n\r', 'POST\nValue', 'POST\nHOST:abc', 'GET\nrHost:abc\n', 'POST\rRemainder:\r', 'GET\rHOST:\n', '\nPUT' ) for method in methods: with self.assertRaisesRegexp( ValueError, "method can't contain control characters"): conn = httplib.HTTPConnection('example.com') conn.sock = FakeSocket(None) conn.request(method=method, url="/") class HttpMethodTests(TestCase): def test_invalid_method_names(self): methods = ( 'GET\r', 'POST\n', 'PUT\n\r', 'POST\nValue', 'POST\nHOST:abc', 'GET\nrHost:abc\n', 'POST\rRemainder:\r', 'GET\rHOST:\n', '\nPUT' ) for method in methods: with self.assertRaisesRegexp( ValueError, "method can't contain control characters"): conn = httplib.HTTPConnection('example.com') conn.sock = FakeSocket(None) conn.request(method=method, url="/") class BasicTest(TestCase): def test_status_lines(self): # Test HTTP status lines body = "HTTP/1.1 200 Ok\r\n\r\nText" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock) resp.begin() self.assertEqual(resp.read(0), '') # Issue #20007 self.assertFalse(resp.isclosed()) self.assertEqual(resp.read(), 'Text') self.assertTrue(resp.isclosed()) body = "HTTP/1.1 400.100 Not Ok\r\n\r\nText" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock) self.assertRaises(httplib.BadStatusLine, resp.begin) def test_bad_status_repr(self): exc = httplib.BadStatusLine('') self.assertEqual(repr(exc), '''BadStatusLine("\'\'",)''') def test_partial_reads(self): # if we have a length, the system knows when to close itself # same behaviour than when we read the whole thing with read() body = "HTTP/1.1 200 Ok\r\nContent-Length: 4\r\n\r\nText" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock) resp.begin() self.assertEqual(resp.read(2), 'Te') self.assertFalse(resp.isclosed()) self.assertEqual(resp.read(2), 'xt') self.assertTrue(resp.isclosed()) def test_partial_reads_no_content_length(self): # when no length is present, the socket should be gracefully closed when # all data was read body = "HTTP/1.1 200 Ok\r\n\r\nText" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock) resp.begin() self.assertEqual(resp.read(2), 'Te') self.assertFalse(resp.isclosed()) self.assertEqual(resp.read(2), 'xt') self.assertEqual(resp.read(1), '') self.assertTrue(resp.isclosed()) def test_partial_reads_incomplete_body(self): # if the server shuts down the connection before the whole # content-length is delivered, the socket is gracefully closed body = "HTTP/1.1 200 Ok\r\nContent-Length: 10\r\n\r\nText" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock) resp.begin() self.assertEqual(resp.read(2), 'Te') self.assertFalse(resp.isclosed()) self.assertEqual(resp.read(2), 'xt') self.assertEqual(resp.read(1), '') self.assertTrue(resp.isclosed()) def test_host_port(self): # Check invalid host_port # Note that httplib does not accept user:password@ in the host-port. for hp in ("www.python.org:abc", "user:password@www.python.org"): self.assertRaises(httplib.InvalidURL, httplib.HTTP, hp) for hp, h, p in (("[fe80::207:e9ff:fe9b]:8000", "fe80::207:e9ff:fe9b", 8000), ("www.python.org:80", "www.python.org", 80), ("www.python.org", "www.python.org", 80), ("www.python.org:", "www.python.org", 80), ("[fe80::207:e9ff:fe9b]", "fe80::207:e9ff:fe9b", 80)): http = httplib.HTTP(hp) c = http._conn if h != c.host: self.fail("Host incorrectly parsed: %s != %s" % (h, c.host)) if p != c.port: self.fail("Port incorrectly parsed: %s != %s" % (p, c.host)) def test_response_headers(self): # test response with multiple message headers with the same field name. text = ('HTTP/1.1 200 OK\r\n' 'Set-Cookie: Customer="WILE_E_COYOTE";' ' Version="1"; Path="/acme"\r\n' 'Set-Cookie: Part_Number="Rocket_Launcher_0001"; Version="1";' ' Path="/acme"\r\n' '\r\n' 'No body\r\n') hdr = ('Customer="WILE_E_COYOTE"; Version="1"; Path="/acme"' ', ' 'Part_Number="Rocket_Launcher_0001"; Version="1"; Path="/acme"') s = FakeSocket(text) r = httplib.HTTPResponse(s) r.begin() cookies = r.getheader("Set-Cookie") if cookies != hdr: self.fail("multiple headers not combined properly") def test_read_head(self): # Test that the library doesn't attempt to read any data # from a HEAD request. (Tickles SF bug #622042.) sock = FakeSocket( 'HTTP/1.1 200 OK\r\n' 'Content-Length: 14432\r\n' '\r\n', NoEOFStringIO) resp = httplib.HTTPResponse(sock, method="HEAD") resp.begin() if resp.read() != "": self.fail("Did not expect response from HEAD request") def test_too_many_headers(self): headers = '\r\n'.join('Header%d: foo' % i for i in xrange(200)) + '\r\n' text = ('HTTP/1.1 200 OK\r\n' + headers) s = FakeSocket(text) r = httplib.HTTPResponse(s) self.assertRaises(httplib.HTTPException, r.begin) def test_send_file(self): expected = 'GET /foo HTTP/1.1\r\nHost: example.com\r\n' \ 'Accept-Encoding: identity\r\nContent-Length:' body = open(__file__, 'rb') conn = httplib.HTTPConnection('example.com') sock = FakeSocket(body) conn.sock = sock conn.request('GET', '/foo', body) self.assertTrue(sock.data.startswith(expected)) self.assertIn('def test_send_file', sock.data) def test_send_tempfile(self): expected = ('GET /foo HTTP/1.1\r\nHost: example.com\r\n' 'Accept-Encoding: identity\r\nContent-Length: 9\r\n\r\n' 'fake\ndata') with tempfile.TemporaryFile() as body: body.write('fake\ndata') body.seek(0) conn = httplib.HTTPConnection('example.com') sock = FakeSocket(body) conn.sock = sock conn.request('GET', '/foo', body) self.assertEqual(sock.data, expected) def test_send(self): expected = 'this is a test this is only a test' conn = httplib.HTTPConnection('example.com') sock = FakeSocket(None) conn.sock = sock conn.send(expected) self.assertEqual(expected, sock.data) sock.data = '' conn.send(array.array('c', expected)) self.assertEqual(expected, sock.data) sock.data = '' conn.send(StringIO.StringIO(expected)) self.assertEqual(expected, sock.data) def test_chunked(self): chunked_start = ( 'HTTP/1.1 200 OK\r\n' 'Transfer-Encoding: chunked\r\n\r\n' 'a\r\n' 'hello worl\r\n' '1\r\n' 'd\r\n' ) sock = FakeSocket(chunked_start + '0\r\n') resp = httplib.HTTPResponse(sock, method="GET") resp.begin() self.assertEqual(resp.read(), 'hello world') resp.close() for x in ('', 'foo\r\n'): sock = FakeSocket(chunked_start + x) resp = httplib.HTTPResponse(sock, method="GET") resp.begin() try: resp.read() except httplib.IncompleteRead, i: self.assertEqual(i.partial, 'hello world') self.assertEqual(repr(i),'IncompleteRead(11 bytes read)') self.assertEqual(str(i),'IncompleteRead(11 bytes read)') else: self.fail('IncompleteRead expected') finally: resp.close() def test_chunked_head(self): chunked_start = ( 'HTTP/1.1 200 OK\r\n' 'Transfer-Encoding: chunked\r\n\r\n' 'a\r\n' 'hello world\r\n' '1\r\n' 'd\r\n' ) sock = FakeSocket(chunked_start + '0\r\n') resp = httplib.HTTPResponse(sock, method="HEAD") resp.begin() self.assertEqual(resp.read(), '') self.assertEqual(resp.status, 200) self.assertEqual(resp.reason, 'OK') self.assertTrue(resp.isclosed()) def test_negative_content_length(self): sock = FakeSocket('HTTP/1.1 200 OK\r\n' 'Content-Length: -1\r\n\r\nHello\r\n') resp = httplib.HTTPResponse(sock, method="GET") resp.begin() self.assertEqual(resp.read(), 'Hello\r\n') self.assertTrue(resp.isclosed()) def test_incomplete_read(self): sock = FakeSocket('HTTP/1.1 200 OK\r\nContent-Length: 10\r\n\r\nHello\r\n') resp = httplib.HTTPResponse(sock, method="GET") resp.begin() try: resp.read() except httplib.IncompleteRead as i: self.assertEqual(i.partial, 'Hello\r\n') self.assertEqual(repr(i), "IncompleteRead(7 bytes read, 3 more expected)") self.assertEqual(str(i), "IncompleteRead(7 bytes read, 3 more expected)") self.assertTrue(resp.isclosed()) else: self.fail('IncompleteRead expected') def test_epipe(self): sock = EPipeSocket( "HTTP/1.0 401 Authorization Required\r\n" "Content-type: text/html\r\n" "WWW-Authenticate: Basic realm=\"example\"\r\n", b"Content-Length") conn = httplib.HTTPConnection("example.com") conn.sock = sock self.assertRaises(socket.error, lambda: conn.request("PUT", "/url", "body")) resp = conn.getresponse() self.assertEqual(401, resp.status) self.assertEqual("Basic realm=\"example\"", resp.getheader("www-authenticate")) def test_filenoattr(self): # Just test the fileno attribute in the HTTPResponse Object. body = "HTTP/1.1 200 Ok\r\n\r\nText" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock) self.assertTrue(hasattr(resp,'fileno'), 'HTTPResponse should expose a fileno attribute') # Test lines overflowing the max line size (_MAXLINE in httplib) def test_overflowing_status_line(self): self.skipTest("disabled for HTTP 0.9 support") body = "HTTP/1.1 200 Ok" + "k" * 65536 + "\r\n" resp = httplib.HTTPResponse(FakeSocket(body)) self.assertRaises((httplib.LineTooLong, httplib.BadStatusLine), resp.begin) def test_overflowing_header_line(self): body = ( 'HTTP/1.1 200 OK\r\n' 'X-Foo: bar' + 'r' * 65536 + '\r\n\r\n' ) resp = httplib.HTTPResponse(FakeSocket(body)) self.assertRaises(httplib.LineTooLong, resp.begin) def test_overflowing_header_limit_after_100(self): body = ( 'HTTP/1.1 100 OK\r\n' 'r\n' * 32768 ) resp = httplib.HTTPResponse(FakeSocket(body)) self.assertRaises(httplib.HTTPException, resp.begin) def test_overflowing_chunked_line(self): body = ( 'HTTP/1.1 200 OK\r\n' 'Transfer-Encoding: chunked\r\n\r\n' + '0' * 65536 + 'a\r\n' 'hello world\r\n' '0\r\n' ) resp = httplib.HTTPResponse(FakeSocket(body)) resp.begin() self.assertRaises(httplib.LineTooLong, resp.read) def test_early_eof(self): # Test httpresponse with no \r\n termination, body = "HTTP/1.1 200 Ok" sock = FakeSocket(body) resp = httplib.HTTPResponse(sock) resp.begin() self.assertEqual(resp.read(), '') self.assertTrue(resp.isclosed()) def test_error_leak(self): # Test that the socket is not leaked if getresponse() fails conn = httplib.HTTPConnection('example.com') response = [] class Response(httplib.HTTPResponse): def __init__(self, *pos, **kw): response.append(self) # Avoid garbage collector closing the socket httplib.HTTPResponse.__init__(self, *pos, **kw) conn.response_class = Response conn.sock = FakeSocket('') # Emulate server dropping connection conn.request('GET', '/') self.assertRaises(httplib.BadStatusLine, conn.getresponse) self.assertTrue(response) #self.assertTrue(response[0].closed) self.assertTrue(conn.sock.file_closed) def test_proxy_tunnel_without_status_line(self): # Issue 17849: If a proxy tunnel is created that does not return # a status code, fail. body = 'hello world' conn = httplib.HTTPConnection('example.com', strict=False) conn.set_tunnel('foo') conn.sock = FakeSocket(body) with self.assertRaisesRegexp(socket.error, "Invalid response"): conn._tunnel() def test_putrequest_override_domain_validation(self): """ It should be possible to override the default validation behavior in putrequest (bpo-38216). """ class UnsafeHTTPConnection(httplib.HTTPConnection): def _validate_path(self, url): pass conn = UnsafeHTTPConnection('example.com') conn.sock = FakeSocket('') conn.putrequest('GET', '/\x00') def test_putrequest_override_host_validation(self): class UnsafeHTTPConnection(httplib.HTTPConnection): def _validate_host(self, url): pass conn = UnsafeHTTPConnection('example.com\r\n') conn.sock = FakeSocket('') # set skip_host so a ValueError is not raised upon adding the # invalid URL as the value of the "Host:" header conn.putrequest('GET', '/', skip_host=1) class OfflineTest(TestCase): def test_responses(self): self.assertEqual(httplib.responses[httplib.NOT_FOUND], "Not Found") class TestServerMixin: """A limited socket server mixin. This is used by test cases for testing http connection end points. """ def setUp(self): self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.port = test_support.bind_port(self.serv) self.source_port = test_support.find_unused_port() self.serv.listen(5) self.conn = None def tearDown(self): if self.conn: self.conn.close() self.conn = None self.serv.close() self.serv = None class SourceAddressTest(TestServerMixin, TestCase): def testHTTPConnectionSourceAddress(self): self.conn = httplib.HTTPConnection(HOST, self.port, source_address=('', self.source_port)) self.conn.connect() self.assertEqual(self.conn.sock.getsockname()[1], self.source_port) @unittest.skipIf(not hasattr(httplib, 'HTTPSConnection'), 'httplib.HTTPSConnection not defined') def testHTTPSConnectionSourceAddress(self): self.conn = httplib.HTTPSConnection(HOST, self.port, source_address=('', self.source_port)) # We don't test anything here other than the constructor not barfing as # this code doesn't deal with setting up an active running SSL server # for an ssl_wrapped connect() to actually return from. class HTTPTest(TestServerMixin, TestCase): def testHTTPConnection(self): self.conn = httplib.HTTP(host=HOST, port=self.port, strict=None) self.conn.connect() self.assertEqual(self.conn._conn.host, HOST) self.assertEqual(self.conn._conn.port, self.port) def testHTTPWithConnectHostPort(self): testhost = 'unreachable.test.domain' testport = '80' self.conn = httplib.HTTP(host=testhost, port=testport) self.conn.connect(host=HOST, port=self.port) self.assertNotEqual(self.conn._conn.host, testhost) self.assertNotEqual(self.conn._conn.port, testport) self.assertEqual(self.conn._conn.host, HOST) self.assertEqual(self.conn._conn.port, self.port) class TimeoutTest(TestCase): PORT = None def setUp(self): self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) TimeoutTest.PORT = test_support.bind_port(self.serv) self.serv.listen(5) def tearDown(self): self.serv.close() self.serv = None def testTimeoutAttribute(self): '''This will prove that the timeout gets through HTTPConnection and into the socket. ''' # default -- use global socket timeout self.assertIsNone(socket.getdefaulttimeout()) socket.setdefaulttimeout(30) try: httpConn = httplib.HTTPConnection(HOST, TimeoutTest.PORT) httpConn.connect() finally: socket.setdefaulttimeout(None) self.assertEqual(httpConn.sock.gettimeout(), 30) httpConn.close() # no timeout -- do not use global socket default self.assertIsNone(socket.getdefaulttimeout()) socket.setdefaulttimeout(30) try: httpConn = httplib.HTTPConnection(HOST, TimeoutTest.PORT, timeout=None) httpConn.connect() finally: socket.setdefaulttimeout(None) self.assertEqual(httpConn.sock.gettimeout(), None) httpConn.close() # a value httpConn = httplib.HTTPConnection(HOST, TimeoutTest.PORT, timeout=30) httpConn.connect() self.assertEqual(httpConn.sock.gettimeout(), 30) httpConn.close() class HTTPSTest(TestCase): def setUp(self): if not hasattr(httplib, 'HTTPSConnection'): self.skipTest('ssl support required') def make_server(self, certfile): from test.ssl_servers import make_https_server return make_https_server(self, certfile=certfile) def test_attributes(self): # simple test to check it's storing the timeout h = httplib.HTTPSConnection(HOST, TimeoutTest.PORT, timeout=30) self.assertEqual(h.timeout, 30) def test_networked(self): # Default settings: requires a valid cert from a trusted CA import ssl test_support.requires('network') with test_support.transient_internet('self-signed.pythontest.net'): h = httplib.HTTPSConnection('self-signed.pythontest.net', 443) with self.assertRaises(ssl.SSLError) as exc_info: h.request('GET', '/') self.assertEqual(exc_info.exception.reason, 'CERTIFICATE_VERIFY_FAILED') def test_networked_noverification(self): # Switch off cert verification import ssl test_support.requires('network') with test_support.transient_internet('self-signed.pythontest.net'): context = ssl._create_stdlib_context() h = httplib.HTTPSConnection('self-signed.pythontest.net', 443, context=context) h.request('GET', '/') resp = h.getresponse() self.assertIn('nginx', resp.getheader('server')) @test_support.system_must_validate_cert def test_networked_trusted_by_default_cert(self): # Default settings: requires a valid cert from a trusted CA test_support.requires('network') with test_support.transient_internet('www.python.org'): h = httplib.HTTPSConnection('www.python.org', 443) h.request('GET', '/') resp = h.getresponse() content_type = resp.getheader('content-type') self.assertIn('text/html', content_type) def test_networked_good_cert(self): # We feed the server's cert as a validating cert import ssl test_support.requires('network') with test_support.transient_internet('self-signed.pythontest.net'): context = ssl.SSLContext(ssl.PROTOCOL_TLS) context.verify_mode = ssl.CERT_REQUIRED context.load_verify_locations(CERT_selfsigned_pythontestdotnet) h = httplib.HTTPSConnection('self-signed.pythontest.net', 443, context=context) h.request('GET', '/') resp = h.getresponse() server_string = resp.getheader('server') self.assertIn('nginx', server_string) def test_networked_bad_cert(self): # We feed a "CA" cert that is unrelated to the server's cert import ssl test_support.requires('network') with test_support.transient_internet('self-signed.pythontest.net'): context = ssl.SSLContext(ssl.PROTOCOL_TLS) context.verify_mode = ssl.CERT_REQUIRED context.load_verify_locations(CERT_localhost) h = httplib.HTTPSConnection('self-signed.pythontest.net', 443, context=context) with self.assertRaises(ssl.SSLError) as exc_info: h.request('GET', '/') self.assertEqual(exc_info.exception.reason, 'CERTIFICATE_VERIFY_FAILED') def test_local_unknown_cert(self): # The custom cert isn't known to the default trust bundle import ssl server = self.make_server(CERT_localhost) h = httplib.HTTPSConnection('localhost', server.port) with self.assertRaises(ssl.SSLError) as exc_info: h.request('GET', '/') self.assertEqual(exc_info.exception.reason, 'CERTIFICATE_VERIFY_FAILED') def test_local_good_hostname(self): # The (valid) cert validates the HTTP hostname import ssl server = self.make_server(CERT_localhost) context = ssl.SSLContext(ssl.PROTOCOL_TLS) context.verify_mode = ssl.CERT_REQUIRED context.load_verify_locations(CERT_localhost) h = httplib.HTTPSConnection('localhost', server.port, context=context) h.request('GET', '/nonexistent') resp = h.getresponse() self.assertEqual(resp.status, 404) def test_local_bad_hostname(self): # The (valid) cert doesn't validate the HTTP hostname import ssl server = self.make_server(CERT_fakehostname) context = ssl.SSLContext(ssl.PROTOCOL_TLS) context.verify_mode = ssl.CERT_REQUIRED context.check_hostname = True context.load_verify_locations(CERT_fakehostname) h = httplib.HTTPSConnection('localhost', server.port, context=context) with self.assertRaises(ssl.CertificateError): h.request('GET', '/') h.close() # With context.check_hostname=False, the mismatching is ignored context.check_hostname = False h = httplib.HTTPSConnection('localhost', server.port, context=context) h.request('GET', '/nonexistent') resp = h.getresponse() self.assertEqual(resp.status, 404) def test_host_port(self): # Check invalid host_port for hp in ("www.python.org:abc", "user:password@www.python.org"): self.assertRaises(httplib.InvalidURL, httplib.HTTPSConnection, hp) for hp, h, p in (("[fe80::207:e9ff:fe9b]:8000", "fe80::207:e9ff:fe9b", 8000), ("www.python.org:443", "www.python.org", 443), ("www.python.org:", "www.python.org", 443), ("www.python.org", "www.python.org", 443), ("[fe80::207:e9ff:fe9b]", "fe80::207:e9ff:fe9b", 443), ("[fe80::207:e9ff:fe9b]:", "fe80::207:e9ff:fe9b", 443)): c = httplib.HTTPSConnection(hp) self.assertEqual(h, c.host) self.assertEqual(p, c.port) class TunnelTests(TestCase): def test_connect(self): response_text = ( 'HTTP/1.0 200 OK\r\n\r\n' # Reply to CONNECT 'HTTP/1.1 200 OK\r\n' # Reply to HEAD 'Content-Length: 42\r\n\r\n' ) def create_connection(address, timeout=None, source_address=None): return FakeSocket(response_text, host=address[0], port=address[1]) conn = httplib.HTTPConnection('proxy.com') conn._create_connection = create_connection # Once connected, we should not be able to tunnel anymore conn.connect() self.assertRaises(RuntimeError, conn.set_tunnel, 'destination.com') # But if close the connection, we are good. conn.close() conn.set_tunnel('destination.com') conn.request('HEAD', '/', '') self.assertEqual(conn.sock.host, 'proxy.com') self.assertEqual(conn.sock.port, 80) self.assertIn('CONNECT destination.com', conn.sock.data) # issue22095 self.assertNotIn('Host: destination.com:None', conn.sock.data) self.assertIn('Host: destination.com', conn.sock.data) self.assertNotIn('Host: proxy.com', conn.sock.data) conn.close() conn.request('PUT', '/', '') self.assertEqual(conn.sock.host, 'proxy.com') self.assertEqual(conn.sock.port, 80) self.assertTrue('CONNECT destination.com' in conn.sock.data) self.assertTrue('Host: destination.com' in conn.sock.data) @test_support.reap_threads def test_main(verbose=None): test_support.run_unittest(HeaderTests, OfflineTest, BasicTest, TimeoutTest, HttpMethodTests, HTTPTest, HTTPSTest, SourceAddressTest, TunnelTests) if __name__ == '__main__': test_main()
[+]
..
[-] 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]