PATH:
lib64
/
python2.7
/
test
"""Regression tests for urllib""" import collections import urllib import httplib import io import unittest import os import sys import mimetools import tempfile from test import test_support from base64 import b64encode def hexescape(char): """Escape char as RFC 2396 specifies""" hex_repr = hex(ord(char))[2:].upper() if len(hex_repr) == 1: hex_repr = "0%s" % hex_repr return "%" + hex_repr def fakehttp(fakedata): class FakeSocket(io.BytesIO): def sendall(self, data): FakeHTTPConnection.buf = data def makefile(self, *args, **kwds): return self def read(self, amt=None): if self.closed: return b"" return io.BytesIO.read(self, amt) def readline(self, length=None): if self.closed: return b"" return io.BytesIO.readline(self, length) class FakeHTTPConnection(httplib.HTTPConnection): # buffer to store data for verification in urlopen tests. buf = "" def connect(self): self.sock = FakeSocket(self.fakedata) self.__class__.fakesock = self.sock FakeHTTPConnection.fakedata = fakedata return FakeHTTPConnection class FakeHTTPMixin(object): def fakehttp(self, fakedata): assert httplib.HTTP._connection_class == httplib.HTTPConnection httplib.HTTP._connection_class = fakehttp(fakedata) def unfakehttp(self): httplib.HTTP._connection_class = httplib.HTTPConnection class urlopen_FileTests(unittest.TestCase): """Test urlopen() opening a temporary file. Try to test as much functionality as possible so as to cut down on reliance on connecting to the Net for testing. """ def setUp(self): """Setup of a temp file to use for testing""" self.text = "test_urllib: %s\n" % self.__class__.__name__ FILE = file(test_support.TESTFN, 'wb') try: FILE.write(self.text) finally: FILE.close() self.pathname = test_support.TESTFN self.returned_obj = urllib.urlopen("file:%s" % self.pathname) def tearDown(self): """Shut down the open object""" self.returned_obj.close() os.remove(test_support.TESTFN) def test_interface(self): # Make sure object returned by urlopen() has the specified methods for attr in ("read", "readline", "readlines", "fileno", "close", "info", "geturl", "getcode", "__iter__"): self.assertTrue(hasattr(self.returned_obj, attr), "object returned by urlopen() lacks %s attribute" % attr) def test_read(self): self.assertEqual(self.text, self.returned_obj.read()) def test_readline(self): self.assertEqual(self.text, self.returned_obj.readline()) self.assertEqual('', self.returned_obj.readline(), "calling readline() after exhausting the file did not" " return an empty string") def test_readlines(self): lines_list = self.returned_obj.readlines() self.assertEqual(len(lines_list), 1, "readlines() returned the wrong number of lines") self.assertEqual(lines_list[0], self.text, "readlines() returned improper text") def test_fileno(self): file_num = self.returned_obj.fileno() self.assertIsInstance(file_num, int, "fileno() did not return an int") self.assertEqual(os.read(file_num, len(self.text)), self.text, "Reading on the file descriptor returned by fileno() " "did not return the expected text") def test_close(self): # Test close() by calling it hear and then having it be called again # by the tearDown() method for the test self.returned_obj.close() def test_info(self): self.assertIsInstance(self.returned_obj.info(), mimetools.Message) def test_geturl(self): self.assertEqual(self.returned_obj.geturl(), self.pathname) def test_getcode(self): self.assertEqual(self.returned_obj.getcode(), None) def test_iter(self): # Test iterator # Don't need to count number of iterations since test would fail the # instant it returned anything beyond the first line from the # comparison for line in self.returned_obj.__iter__(): self.assertEqual(line, self.text) def test_relativelocalfile(self): self.assertRaises(ValueError,urllib.urlopen,'./' + self.pathname) class ProxyTests(unittest.TestCase): def setUp(self): # Records changes to env vars self.env = test_support.EnvironmentVarGuard() # Delete all proxy related env vars for k in os.environ.keys(): if 'proxy' in k.lower(): self.env.unset(k) def tearDown(self): # Restore all proxy related env vars self.env.__exit__() del self.env def test_getproxies_environment_keep_no_proxies(self): self.env.set('NO_PROXY', 'localhost') proxies = urllib.getproxies_environment() # getproxies_environment use lowered case truncated (no '_proxy') keys self.assertEqual('localhost', proxies['no']) # List of no_proxies with space. self.env.set('NO_PROXY', 'localhost, anotherdomain.com, newdomain.com:1234') self.assertTrue(urllib.proxy_bypass_environment('anotherdomain.com')) self.assertTrue(urllib.proxy_bypass_environment('anotherdomain.com:8888')) self.assertTrue(urllib.proxy_bypass_environment('newdomain.com:1234')) def test_proxy_cgi_ignore(self): try: self.env.set('HTTP_PROXY', 'http://somewhere:3128') proxies = urllib.getproxies_environment() self.assertEqual('http://somewhere:3128', proxies['http']) self.env.set('REQUEST_METHOD', 'GET') proxies = urllib.getproxies_environment() self.assertNotIn('http', proxies) finally: self.env.unset('REQUEST_METHOD') self.env.unset('HTTP_PROXY') def test_proxy_bypass_environment_host_match(self): bypass = urllib.proxy_bypass_environment self.env.set('NO_PROXY', 'localhost, anotherdomain.com, newdomain.com:1234, .d.o.t') self.assertTrue(bypass('localhost')) self.assertTrue(bypass('LocalHost')) # MixedCase self.assertTrue(bypass('LOCALHOST')) # UPPERCASE self.assertTrue(bypass('newdomain.com:1234')) self.assertTrue(bypass('foo.d.o.t')) # issue 29142 self.assertTrue(bypass('anotherdomain.com:8888')) self.assertTrue(bypass('www.newdomain.com:1234')) self.assertFalse(bypass('prelocalhost')) self.assertFalse(bypass('newdomain.com')) # no port self.assertFalse(bypass('newdomain.com:1235')) # wrong port class ProxyTests_withOrderedEnv(unittest.TestCase): def setUp(self): # We need to test conditions, where variable order _is_ significant self._saved_env = os.environ # Monkey patch os.environ, start with empty fake environment os.environ = collections.OrderedDict() def tearDown(self): os.environ = self._saved_env def test_getproxies_environment_prefer_lowercase(self): # Test lowercase preference with removal os.environ['no_proxy'] = '' os.environ['No_Proxy'] = 'localhost' self.assertFalse(urllib.proxy_bypass_environment('localhost')) self.assertFalse(urllib.proxy_bypass_environment('arbitrary')) os.environ['http_proxy'] = '' os.environ['HTTP_PROXY'] = 'http://somewhere:3128' proxies = urllib.getproxies_environment() self.assertEqual({}, proxies) # Test lowercase preference of proxy bypass and correct matching including ports os.environ['no_proxy'] = 'localhost, noproxy.com, my.proxy:1234' os.environ['No_Proxy'] = 'xyz.com' self.assertTrue(urllib.proxy_bypass_environment('localhost')) self.assertTrue(urllib.proxy_bypass_environment('noproxy.com:5678')) self.assertTrue(urllib.proxy_bypass_environment('my.proxy:1234')) self.assertFalse(urllib.proxy_bypass_environment('my.proxy')) self.assertFalse(urllib.proxy_bypass_environment('arbitrary')) # Test lowercase preference with replacement os.environ['http_proxy'] = 'http://somewhere:3128' os.environ['Http_Proxy'] = 'http://somewhereelse:3128' proxies = urllib.getproxies_environment() self.assertEqual('http://somewhere:3128', proxies['http']) class urlopen_HttpTests(unittest.TestCase, FakeHTTPMixin): """Test urlopen() opening a fake http connection.""" def test_read(self): self.fakehttp('Hello!') try: fp = urllib.urlopen("http://python.org/") self.assertEqual(fp.readline(), 'Hello!') self.assertEqual(fp.readline(), '') self.assertEqual(fp.geturl(), 'http://python.org/') self.assertEqual(fp.getcode(), 200) finally: self.unfakehttp() def test_url_fragment(self): # Issue #11703: geturl() omits fragments in the original URL. url = 'http://docs.python.org/library/urllib.html#OK' self.fakehttp('Hello!') try: fp = urllib.urlopen(url) self.assertEqual(fp.geturl(), url) finally: self.unfakehttp() def test_url_with_control_char_rejected(self): for char_no in range(0, 0x21) + range(0x7f, 0x100): char = chr(char_no) schemeless_url = "//localhost:7777/test%s/" % char self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.") try: # urllib quotes the URL so there is no injection. resp = urllib.urlopen("http:" + schemeless_url) self.assertNotIn(char, resp.geturl()) finally: self.unfakehttp() def test_url_with_newline_header_injection_rejected(self): self.fakehttp(b"HTTP/1.1 200 OK\r\n\r\nHello.") host = "localhost:7777?a=1 HTTP/1.1\r\nX-injected: header\r\nTEST: 123" schemeless_url = "//" + host + ":8080/test/?test=a" try: # urllib quotes the URL so there is no injection. resp = urllib.urlopen("http:" + schemeless_url) self.assertNotIn(' ', resp.geturl()) self.assertNotIn('\r', resp.geturl()) self.assertNotIn('\n', resp.geturl()) finally: self.unfakehttp() def test_read_bogus(self): # urlopen() should raise IOError for many error codes. self.fakehttp('''HTTP/1.1 401 Authentication Required Date: Wed, 02 Jan 2008 03:03:54 GMT Server: Apache/1.3.33 (Debian GNU/Linux) mod_ssl/2.8.22 OpenSSL/0.9.7e Connection: close Content-Type: text/html; charset=iso-8859-1 ''') try: self.assertRaises(IOError, urllib.urlopen, "http://python.org/") finally: self.unfakehttp() def test_invalid_redirect(self): # urlopen() should raise IOError for many error codes. self.fakehttp("""HTTP/1.1 302 Found Date: Wed, 02 Jan 2008 03:03:54 GMT Server: Apache/1.3.33 (Debian GNU/Linux) mod_ssl/2.8.22 OpenSSL/0.9.7e Location: file:README Connection: close Content-Type: text/html; charset=iso-8859-1 """) try: msg = "Redirection to url 'file:" with self.assertRaisesRegexp(IOError, msg): urllib.urlopen("http://python.org/") finally: self.unfakehttp() def test_redirect_limit_independent(self): # Ticket #12923: make sure independent requests each use their # own retry limit. for i in range(urllib.FancyURLopener().maxtries): self.fakehttp(b'''HTTP/1.1 302 Found Location: file://guidocomputer.athome.com:/python/license Connection: close ''') try: self.assertRaises(IOError, urllib.urlopen, "http://something") finally: self.unfakehttp() def test_empty_socket(self): # urlopen() raises IOError if the underlying socket does not send any # data. (#1680230) self.fakehttp('') try: self.assertRaises(IOError, urllib.urlopen, 'http://something') finally: self.unfakehttp() def test_missing_localfile(self): self.assertRaises(IOError, urllib.urlopen, 'file://localhost/a/missing/file.py') fd, tmp_file = tempfile.mkstemp() tmp_fileurl = 'file://localhost/' + tmp_file.replace(os.path.sep, '/') self.assertTrue(os.path.exists(tmp_file)) try: fp = urllib.urlopen(tmp_fileurl) fp.close() finally: os.close(fd) os.unlink(tmp_file) self.assertFalse(os.path.exists(tmp_file)) self.assertRaises(IOError, urllib.urlopen, tmp_fileurl) def test_ftp_nonexisting(self): self.assertRaises(IOError, urllib.urlopen, 'ftp://localhost/not/existing/file.py') def test_userpass_inurl(self): self.fakehttp('Hello!') try: fakehttp_wrapper = httplib.HTTP._connection_class fp = urllib.urlopen("http://user:pass@python.org/") authorization = ("Authorization: Basic %s\r\n" % b64encode('user:pass')) # The authorization header must be in place self.assertIn(authorization, fakehttp_wrapper.buf) self.assertEqual(fp.readline(), "Hello!") self.assertEqual(fp.readline(), "") self.assertEqual(fp.geturl(), 'http://user:pass@python.org/') self.assertEqual(fp.getcode(), 200) finally: self.unfakehttp() def test_userpass_with_spaces_inurl(self): self.fakehttp('Hello!') try: url = "http://a b:c d@python.org/" fakehttp_wrapper = httplib.HTTP._connection_class authorization = ("Authorization: Basic %s\r\n" % b64encode('a b:c d')) fp = urllib.urlopen(url) # The authorization header must be in place self.assertIn(authorization, fakehttp_wrapper.buf) self.assertEqual(fp.readline(), "Hello!") self.assertEqual(fp.readline(), "") # the spaces are quoted in URL so no match self.assertNotEqual(fp.geturl(), url) self.assertEqual(fp.getcode(), 200) finally: self.unfakehttp() class urlretrieve_FileTests(unittest.TestCase): """Test urllib.urlretrieve() on local files""" def setUp(self): # Create a list of temporary files. Each item in the list is a file # name (absolute path or relative to the current working directory). # All files in this list will be deleted in the tearDown method. Note, # this only helps to makes sure temporary files get deleted, but it # does nothing about trying to close files that may still be open. It # is the responsibility of the developer to properly close files even # when exceptional conditions occur. self.tempFiles = [] # Create a temporary file. self.registerFileForCleanUp(test_support.TESTFN) self.text = 'testing urllib.urlretrieve' try: FILE = file(test_support.TESTFN, 'wb') FILE.write(self.text) FILE.close() finally: try: FILE.close() except: pass def tearDown(self): # Delete the temporary files. for each in self.tempFiles: try: os.remove(each) except: pass def constructLocalFileUrl(self, filePath): return "file://%s" % urllib.pathname2url(os.path.abspath(filePath)) def createNewTempFile(self, data=""): """Creates a new temporary file containing the specified data, registers the file for deletion during the test fixture tear down, and returns the absolute path of the file.""" newFd, newFilePath = tempfile.mkstemp() try: self.registerFileForCleanUp(newFilePath) newFile = os.fdopen(newFd, "wb") newFile.write(data) newFile.close() finally: try: newFile.close() except: pass return newFilePath def registerFileForCleanUp(self, fileName): self.tempFiles.append(fileName) def test_basic(self): # Make sure that a local file just gets its own location returned and # a headers value is returned. result = urllib.urlretrieve("file:%s" % test_support.TESTFN) self.assertEqual(result[0], test_support.TESTFN) self.assertIsInstance(result[1], mimetools.Message, "did not get a mimetools.Message instance as " "second returned value") def test_copy(self): # Test that setting the filename argument works. second_temp = "%s.2" % test_support.TESTFN self.registerFileForCleanUp(second_temp) result = urllib.urlretrieve(self.constructLocalFileUrl( test_support.TESTFN), second_temp) self.assertEqual(second_temp, result[0]) self.assertTrue(os.path.exists(second_temp), "copy of the file was not " "made") FILE = file(second_temp, 'rb') try: text = FILE.read() FILE.close() finally: try: FILE.close() except: pass self.assertEqual(self.text, text) def test_reporthook(self): # Make sure that the reporthook works. def hooktester(count, block_size, total_size, count_holder=[0]): self.assertIsInstance(count, int) self.assertIsInstance(block_size, int) self.assertIsInstance(total_size, int) self.assertEqual(count, count_holder[0]) count_holder[0] = count_holder[0] + 1 second_temp = "%s.2" % test_support.TESTFN self.registerFileForCleanUp(second_temp) urllib.urlretrieve(self.constructLocalFileUrl(test_support.TESTFN), second_temp, hooktester) def test_reporthook_0_bytes(self): # Test on zero length file. Should call reporthook only 1 time. report = [] def hooktester(count, block_size, total_size, _report=report): _report.append((count, block_size, total_size)) srcFileName = self.createNewTempFile() urllib.urlretrieve(self.constructLocalFileUrl(srcFileName), test_support.TESTFN, hooktester) self.assertEqual(len(report), 1) self.assertEqual(report[0][2], 0) def test_reporthook_5_bytes(self): # Test on 5 byte file. Should call reporthook only 2 times (once when # the "network connection" is established and once when the block is # read). Since the block size is 8192 bytes, only one block read is # required to read the entire file. report = [] def hooktester(count, block_size, total_size, _report=report): _report.append((count, block_size, total_size)) srcFileName = self.createNewTempFile("x" * 5) urllib.urlretrieve(self.constructLocalFileUrl(srcFileName), test_support.TESTFN, hooktester) self.assertEqual(len(report), 2) self.assertEqual(report[0][1], 8192) self.assertEqual(report[0][2], 5) def test_reporthook_8193_bytes(self): # Test on 8193 byte file. Should call reporthook only 3 times (once # when the "network connection" is established, once for the next 8192 # bytes, and once for the last byte). report = [] def hooktester(count, block_size, total_size, _report=report): _report.append((count, block_size, total_size)) srcFileName = self.createNewTempFile("x" * 8193) urllib.urlretrieve(self.constructLocalFileUrl(srcFileName), test_support.TESTFN, hooktester) self.assertEqual(len(report), 3) self.assertEqual(report[0][1], 8192) self.assertEqual(report[0][2], 8193) class urlretrieve_HttpTests(unittest.TestCase, FakeHTTPMixin): """Test urllib.urlretrieve() using fake http connections""" def test_short_content_raises_ContentTooShortError(self): self.fakehttp('''HTTP/1.1 200 OK Date: Wed, 02 Jan 2008 03:03:54 GMT Server: Apache/1.3.33 (Debian GNU/Linux) mod_ssl/2.8.22 OpenSSL/0.9.7e Connection: close Content-Length: 100 Content-Type: text/html; charset=iso-8859-1 FF ''') def _reporthook(par1, par2, par3): pass try: self.assertRaises(urllib.ContentTooShortError, urllib.urlretrieve, 'http://example.com', reporthook=_reporthook) finally: self.unfakehttp() def test_short_content_raises_ContentTooShortError_without_reporthook(self): self.fakehttp('''HTTP/1.1 200 OK Date: Wed, 02 Jan 2008 03:03:54 GMT Server: Apache/1.3.33 (Debian GNU/Linux) mod_ssl/2.8.22 OpenSSL/0.9.7e Connection: close Content-Length: 100 Content-Type: text/html; charset=iso-8859-1 FF ''') try: self.assertRaises(urllib.ContentTooShortError, urllib.urlretrieve, 'http://example.com/') finally: self.unfakehttp() class QuotingTests(unittest.TestCase): """Tests for urllib.quote() and urllib.quote_plus() According to RFC 2396 ("Uniform Resource Identifiers), to escape a character you write it as '%' + <2 character US-ASCII hex value>. The Python code of ``'%' + hex(ord(<character>))[2:]`` escapes a character properly. Case does not matter on the hex letters. The various character sets specified are: Reserved characters : ";/?:@&=+$," Have special meaning in URIs and must be escaped if not being used for their special meaning Data characters : letters, digits, and "-_.!~*'()" Unreserved and do not need to be escaped; can be, though, if desired Control characters : 0x00 - 0x1F, 0x7F Have no use in URIs so must be escaped space : 0x20 Must be escaped Delimiters : '<>#%"' Must be escaped Unwise : "{}|\^[]`" Must be escaped """ def test_never_quote(self): # Make sure quote() does not quote letters, digits, and "_,.-" do_not_quote = '' .join(["ABCDEFGHIJKLMNOPQRSTUVWXYZ", "abcdefghijklmnopqrstuvwxyz", "0123456789", "_.-"]) result = urllib.quote(do_not_quote) self.assertEqual(do_not_quote, result, "using quote(): %s != %s" % (do_not_quote, result)) result = urllib.quote_plus(do_not_quote) self.assertEqual(do_not_quote, result, "using quote_plus(): %s != %s" % (do_not_quote, result)) def test_default_safe(self): # Test '/' is default value for 'safe' parameter self.assertEqual(urllib.quote.func_defaults[0], '/') def test_safe(self): # Test setting 'safe' parameter does what it should do quote_by_default = "<>" result = urllib.quote(quote_by_default, safe=quote_by_default) self.assertEqual(quote_by_default, result, "using quote(): %s != %s" % (quote_by_default, result)) result = urllib.quote_plus(quote_by_default, safe=quote_by_default) self.assertEqual(quote_by_default, result, "using quote_plus(): %s != %s" % (quote_by_default, result)) def test_default_quoting(self): # Make sure all characters that should be quoted are by default sans # space (separate test for that). should_quote = [chr(num) for num in range(32)] # For 0x00 - 0x1F should_quote.append('<>#%"{}|\^[]`') should_quote.append(chr(127)) # For 0x7F should_quote = ''.join(should_quote) for char in should_quote: result = urllib.quote(char) self.assertEqual(hexescape(char), result, "using quote(): %s should be escaped to %s, not %s" % (char, hexescape(char), result)) result = urllib.quote_plus(char) self.assertEqual(hexescape(char), result, "using quote_plus(): " "%s should be escapes to %s, not %s" % (char, hexescape(char), result)) del should_quote partial_quote = "ab[]cd" expected = "ab%5B%5Dcd" result = urllib.quote(partial_quote) self.assertEqual(expected, result, "using quote(): %s != %s" % (expected, result)) result = urllib.quote_plus(partial_quote) self.assertEqual(expected, result, "using quote_plus(): %s != %s" % (expected, result)) self.assertRaises(TypeError, urllib.quote, None) def test_quoting_space(self): # Make sure quote() and quote_plus() handle spaces as specified in # their unique way result = urllib.quote(' ') self.assertEqual(result, hexescape(' '), "using quote(): %s != %s" % (result, hexescape(' '))) result = urllib.quote_plus(' ') self.assertEqual(result, '+', "using quote_plus(): %s != +" % result) given = "a b cd e f" expect = given.replace(' ', hexescape(' ')) result = urllib.quote(given) self.assertEqual(expect, result, "using quote(): %s != %s" % (expect, result)) expect = given.replace(' ', '+') result = urllib.quote_plus(given) self.assertEqual(expect, result, "using quote_plus(): %s != %s" % (expect, result)) def test_quoting_plus(self): self.assertEqual(urllib.quote_plus('alpha+beta gamma'), 'alpha%2Bbeta+gamma') self.assertEqual(urllib.quote_plus('alpha+beta gamma', '+'), 'alpha+beta+gamma') class UnquotingTests(unittest.TestCase): """Tests for unquote() and unquote_plus() See the doc string for quoting_Tests for details on quoting and such. """ def test_unquoting(self): # Make sure unquoting of all ASCII values works escape_list = [] for num in range(128): given = hexescape(chr(num)) expect = chr(num) result = urllib.unquote(given) self.assertEqual(expect, result, "using unquote(): %s != %s" % (expect, result)) result = urllib.unquote_plus(given) self.assertEqual(expect, result, "using unquote_plus(): %s != %s" % (expect, result)) escape_list.append(given) escape_string = ''.join(escape_list) del escape_list result = urllib.unquote(escape_string) self.assertEqual(result.count('%'), 1, "using quote(): not all characters escaped; %s" % result) result = urllib.unquote(escape_string) self.assertEqual(result.count('%'), 1, "using unquote(): not all characters escaped: " "%s" % result) def test_unquoting_badpercent(self): # Test unquoting on bad percent-escapes given = '%xab' expect = given result = urllib.unquote(given) self.assertEqual(expect, result, "using unquote(): %r != %r" % (expect, result)) given = '%x' expect = given result = urllib.unquote(given) self.assertEqual(expect, result, "using unquote(): %r != %r" % (expect, result)) given = '%' expect = given result = urllib.unquote(given) self.assertEqual(expect, result, "using unquote(): %r != %r" % (expect, result)) def test_unquoting_mixed_case(self): # Test unquoting on mixed-case hex digits in the percent-escapes given = '%Ab%eA' expect = '\xab\xea' result = urllib.unquote(given) self.assertEqual(expect, result, "using unquote(): %r != %r" % (expect, result)) def test_unquoting_parts(self): # Make sure unquoting works when have non-quoted characters # interspersed given = 'ab%sd' % hexescape('c') expect = "abcd" result = urllib.unquote(given) self.assertEqual(expect, result, "using quote(): %s != %s" % (expect, result)) result = urllib.unquote_plus(given) self.assertEqual(expect, result, "using unquote_plus(): %s != %s" % (expect, result)) def test_unquoting_plus(self): # Test difference between unquote() and unquote_plus() given = "are+there+spaces..." expect = given result = urllib.unquote(given) self.assertEqual(expect, result, "using unquote(): %s != %s" % (expect, result)) expect = given.replace('+', ' ') result = urllib.unquote_plus(given) self.assertEqual(expect, result, "using unquote_plus(): %s != %s" % (expect, result)) def test_unquote_with_unicode(self): r = urllib.unquote(u'br%C3%BCckner_sapporo_20050930.doc') self.assertEqual(r, u'br\xc3\xbcckner_sapporo_20050930.doc') class urlencode_Tests(unittest.TestCase): """Tests for urlencode()""" def help_inputtype(self, given, test_type): """Helper method for testing different input types. 'given' must lead to only the pairs: * 1st, 1 * 2nd, 2 * 3rd, 3 Test cannot assume anything about order. Docs make no guarantee and have possible dictionary input. """ expect_somewhere = ["1st=1", "2nd=2", "3rd=3"] result = urllib.urlencode(given) for expected in expect_somewhere: self.assertIn(expected, result, "testing %s: %s not found in %s" % (test_type, expected, result)) self.assertEqual(result.count('&'), 2, "testing %s: expected 2 '&'s; got %s" % (test_type, result.count('&'))) amp_location = result.index('&') on_amp_left = result[amp_location - 1] on_amp_right = result[amp_location + 1] self.assertTrue(on_amp_left.isdigit() and on_amp_right.isdigit(), "testing %s: '&' not located in proper place in %s" % (test_type, result)) self.assertEqual(len(result), (5 * 3) + 2, #5 chars per thing and amps "testing %s: " "unexpected number of characters: %s != %s" % (test_type, len(result), (5 * 3) + 2)) def test_using_mapping(self): # Test passing in a mapping object as an argument. self.help_inputtype({"1st":'1', "2nd":'2', "3rd":'3'}, "using dict as input type") def test_using_sequence(self): # Test passing in a sequence of two-item sequences as an argument. self.help_inputtype([('1st', '1'), ('2nd', '2'), ('3rd', '3')], "using sequence of two-item tuples as input") def test_quoting(self): # Make sure keys and values are quoted using quote_plus() given = {"&":"="} expect = "%s=%s" % (hexescape('&'), hexescape('=')) result = urllib.urlencode(given) self.assertEqual(expect, result) given = {"key name":"A bunch of pluses"} expect = "key+name=A+bunch+of+pluses" result = urllib.urlencode(given) self.assertEqual(expect, result) def test_doseq(self): # Test that passing True for 'doseq' parameter works correctly given = {'sequence':['1', '2', '3']} expect = "sequence=%s" % urllib.quote_plus(str(['1', '2', '3'])) result = urllib.urlencode(given) self.assertEqual(expect, result) result = urllib.urlencode(given, True) for value in given["sequence"]: expect = "sequence=%s" % value self.assertIn(expect, result) self.assertEqual(result.count('&'), 2, "Expected 2 '&'s, got %s" % result.count('&')) class Pathname_Tests(unittest.TestCase): """Test pathname2url() and url2pathname()""" def test_basic(self): # Make sure simple tests pass expected_path = os.path.join("parts", "of", "a", "path") expected_url = "parts/of/a/path" result = urllib.pathname2url(expected_path) self.assertEqual(expected_url, result, "pathname2url() failed; %s != %s" % (result, expected_url)) result = urllib.url2pathname(expected_url) self.assertEqual(expected_path, result, "url2pathame() failed; %s != %s" % (result, expected_path)) def test_quoting(self): # Test automatic quoting and unquoting works for pathnam2url() and # url2pathname() respectively given = os.path.join("needs", "quot=ing", "here") expect = "needs/%s/here" % urllib.quote("quot=ing") result = urllib.pathname2url(given) self.assertEqual(expect, result, "pathname2url() failed; %s != %s" % (expect, result)) expect = given result = urllib.url2pathname(result) self.assertEqual(expect, result, "url2pathname() failed; %s != %s" % (expect, result)) given = os.path.join("make sure", "using_quote") expect = "%s/using_quote" % urllib.quote("make sure") result = urllib.pathname2url(given) self.assertEqual(expect, result, "pathname2url() failed; %s != %s" % (expect, result)) given = "make+sure/using_unquote" expect = os.path.join("make+sure", "using_unquote") result = urllib.url2pathname(given) self.assertEqual(expect, result, "url2pathname() failed; %s != %s" % (expect, result)) @unittest.skipUnless(sys.platform == 'win32', 'test specific to the nturl2path library') def test_ntpath(self): given = ('/C:/', '///C:/', '/C|//') expect = 'C:\\' for url in given: result = urllib.url2pathname(url) self.assertEqual(expect, result, 'nturl2path.url2pathname() failed; %s != %s' % (expect, result)) given = '///C|/path' expect = 'C:\\path' result = urllib.url2pathname(given) self.assertEqual(expect, result, 'nturl2path.url2pathname() failed; %s != %s' % (expect, result)) class Utility_Tests(unittest.TestCase): """Testcase to test the various utility functions in the urllib.""" # In Python 3 this test class is moved to test_urlparse. def test_splittype(self): splittype = urllib.splittype self.assertEqual(splittype('type:opaquestring'), ('type', 'opaquestring')) self.assertEqual(splittype('opaquestring'), (None, 'opaquestring')) self.assertEqual(splittype(':opaquestring'), (None, ':opaquestring')) self.assertEqual(splittype('type:'), ('type', '')) self.assertEqual(splittype('type:opaque:string'), ('type', 'opaque:string')) def test_splithost(self): splithost = urllib.splithost self.assertEqual(splithost('//www.example.org:80/foo/bar/baz.html'), ('www.example.org:80', '/foo/bar/baz.html')) self.assertEqual(splithost('//www.example.org:80'), ('www.example.org:80', '')) self.assertEqual(splithost('/foo/bar/baz.html'), (None, '/foo/bar/baz.html')) # bpo-30500: # starts a fragment. self.assertEqual(splithost('//127.0.0.1#@host.com'), ('127.0.0.1', '/#@host.com')) self.assertEqual(splithost('//127.0.0.1#@host.com:80'), ('127.0.0.1', '/#@host.com:80')) self.assertEqual(splithost('//127.0.0.1:80#@host.com'), ('127.0.0.1:80', '/#@host.com')) # Empty host is returned as empty string. self.assertEqual(splithost("///file"), ('', '/file')) # Trailing semicolon, question mark and hash symbol are kept. self.assertEqual(splithost("//example.net/file;"), ('example.net', '/file;')) self.assertEqual(splithost("//example.net/file?"), ('example.net', '/file?')) self.assertEqual(splithost("//example.net/file#"), ('example.net', '/file#')) def test_splituser(self): splituser = urllib.splituser self.assertEqual(splituser('User:Pass@www.python.org:080'), ('User:Pass', 'www.python.org:080')) self.assertEqual(splituser('@www.python.org:080'), ('', 'www.python.org:080')) self.assertEqual(splituser('www.python.org:080'), (None, 'www.python.org:080')) self.assertEqual(splituser('User:Pass@'), ('User:Pass', '')) self.assertEqual(splituser('User@example.com:Pass@www.python.org:080'), ('User@example.com:Pass', 'www.python.org:080')) def test_splitpasswd(self): # Some of the password examples are not sensible, but it is added to # confirming to RFC2617 and addressing issue4675. splitpasswd = urllib.splitpasswd self.assertEqual(splitpasswd('user:ab'), ('user', 'ab')) self.assertEqual(splitpasswd('user:a\nb'), ('user', 'a\nb')) self.assertEqual(splitpasswd('user:a\tb'), ('user', 'a\tb')) self.assertEqual(splitpasswd('user:a\rb'), ('user', 'a\rb')) self.assertEqual(splitpasswd('user:a\fb'), ('user', 'a\fb')) self.assertEqual(splitpasswd('user:a\vb'), ('user', 'a\vb')) self.assertEqual(splitpasswd('user:a:b'), ('user', 'a:b')) self.assertEqual(splitpasswd('user:a b'), ('user', 'a b')) self.assertEqual(splitpasswd('user 2:ab'), ('user 2', 'ab')) self.assertEqual(splitpasswd('user+1:a+b'), ('user+1', 'a+b')) self.assertEqual(splitpasswd('user:'), ('user', '')) self.assertEqual(splitpasswd('user'), ('user', None)) self.assertEqual(splitpasswd(':ab'), ('', 'ab')) def test_splitport(self): splitport = urllib.splitport self.assertEqual(splitport('parrot:88'), ('parrot', '88')) self.assertEqual(splitport('parrot'), ('parrot', None)) self.assertEqual(splitport('parrot:'), ('parrot', None)) self.assertEqual(splitport('127.0.0.1'), ('127.0.0.1', None)) self.assertEqual(splitport('parrot:cheese'), ('parrot:cheese', None)) self.assertEqual(splitport('[::1]:88'), ('[::1]', '88')) self.assertEqual(splitport('[::1]'), ('[::1]', None)) self.assertEqual(splitport(':88'), ('', '88')) def test_splitnport(self): splitnport = urllib.splitnport self.assertEqual(splitnport('parrot:88'), ('parrot', 88)) self.assertEqual(splitnport('parrot'), ('parrot', -1)) self.assertEqual(splitnport('parrot', 55), ('parrot', 55)) self.assertEqual(splitnport('parrot:'), ('parrot', -1)) self.assertEqual(splitnport('parrot:', 55), ('parrot', 55)) self.assertEqual(splitnport('127.0.0.1'), ('127.0.0.1', -1)) self.assertEqual(splitnport('127.0.0.1', 55), ('127.0.0.1', 55)) self.assertEqual(splitnport('parrot:cheese'), ('parrot', None)) self.assertEqual(splitnport('parrot:cheese', 55), ('parrot', None)) def test_splitquery(self): # Normal cases are exercised by other tests; ensure that we also # catch cases with no port specified (testcase ensuring coverage) splitquery = urllib.splitquery self.assertEqual(splitquery('http://python.org/fake?foo=bar'), ('http://python.org/fake', 'foo=bar')) self.assertEqual(splitquery('http://python.org/fake?foo=bar?'), ('http://python.org/fake?foo=bar', '')) self.assertEqual(splitquery('http://python.org/fake'), ('http://python.org/fake', None)) self.assertEqual(splitquery('?foo=bar'), ('', 'foo=bar')) def test_splittag(self): splittag = urllib.splittag self.assertEqual(splittag('http://example.com?foo=bar#baz'), ('http://example.com?foo=bar', 'baz')) self.assertEqual(splittag('http://example.com?foo=bar#'), ('http://example.com?foo=bar', '')) self.assertEqual(splittag('#baz'), ('', 'baz')) self.assertEqual(splittag('http://example.com?foo=bar'), ('http://example.com?foo=bar', None)) self.assertEqual(splittag('http://example.com?foo=bar#baz#boo'), ('http://example.com?foo=bar#baz', 'boo')) def test_splitattr(self): splitattr = urllib.splitattr self.assertEqual(splitattr('/path;attr1=value1;attr2=value2'), ('/path', ['attr1=value1', 'attr2=value2'])) self.assertEqual(splitattr('/path;'), ('/path', [''])) self.assertEqual(splitattr(';attr1=value1;attr2=value2'), ('', ['attr1=value1', 'attr2=value2'])) self.assertEqual(splitattr('/path'), ('/path', [])) def test_splitvalue(self): # Normal cases are exercised by other tests; test pathological cases # with no key/value pairs. (testcase ensuring coverage) splitvalue = urllib.splitvalue self.assertEqual(splitvalue('foo=bar'), ('foo', 'bar')) self.assertEqual(splitvalue('foo='), ('foo', '')) self.assertEqual(splitvalue('=bar'), ('', 'bar')) self.assertEqual(splitvalue('foobar'), ('foobar', None)) self.assertEqual(splitvalue('foo=bar=baz'), ('foo', 'bar=baz')) def test_toBytes(self): result = urllib.toBytes(u'http://www.python.org') self.assertEqual(result, 'http://www.python.org') self.assertRaises(UnicodeError, urllib.toBytes, test_support.u(r'http://www.python.org/medi\u00e6val')) def test_unwrap(self): url = urllib.unwrap('<URL:type://host/path>') self.assertEqual(url, 'type://host/path') class URLopener_Tests(unittest.TestCase): """Testcase to test the open method of URLopener class.""" def test_quoted_open(self): class DummyURLopener(urllib.URLopener): def open_spam(self, url): return url self.assertEqual(DummyURLopener().open( 'spam://example/ /'),'//example/%20/') # test the safe characters are not quoted by urlopen self.assertEqual(DummyURLopener().open( "spam://c:|windows%/:=&?~#+!$,;'@()*[]|/path/"), "//c:|windows%/:=&?~#+!$,;'@()*[]|/path/") def test_local_file_open(self): # bpo-35907, CVE-2019-9948: urllib must reject local_file:// scheme class DummyURLopener(urllib.URLopener): def open_local_file(self, url): return url for url in ('local_file://example', 'local-file://example'): self.assertRaises(IOError, urllib.urlopen, url) self.assertRaises(IOError, urllib.URLopener().open, url) self.assertRaises(IOError, urllib.URLopener().retrieve, url) self.assertRaises(IOError, DummyURLopener().open, url) self.assertRaises(IOError, DummyURLopener().retrieve, url) # Just commented them out. # Can't really tell why keep failing in windows and sparc. # Everywhere else they work ok, but on those machines, sometimes # fail in one of the tests, sometimes in other. I have a linux, and # the tests go ok. # If anybody has one of the problematic environments, please help! # . Facundo # # def server(evt): # import socket, time # serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # serv.settimeout(3) # serv.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # serv.bind(("", 9093)) # serv.listen(5) # try: # conn, addr = serv.accept() # conn.send("1 Hola mundo\n") # cantdata = 0 # while cantdata < 13: # data = conn.recv(13-cantdata) # cantdata += len(data) # time.sleep(.3) # conn.send("2 No more lines\n") # conn.close() # except socket.timeout: # pass # finally: # serv.close() # evt.set() # # class FTPWrapperTests(unittest.TestCase): # # def setUp(self): # import ftplib, time, threading # ftplib.FTP.port = 9093 # self.evt = threading.Event() # threading.Thread(target=server, args=(self.evt,)).start() # time.sleep(.1) # # def tearDown(self): # self.evt.wait() # # def testBasic(self): # # connects # ftp = urllib.ftpwrapper("myuser", "mypass", "localhost", 9093, []) # ftp.close() # # def testTimeoutNone(self): # # global default timeout is ignored # import socket # self.assertIsNone(socket.getdefaulttimeout()) # socket.setdefaulttimeout(30) # try: # ftp = urllib.ftpwrapper("myuser", "mypass", "localhost", 9093, []) # finally: # socket.setdefaulttimeout(None) # self.assertEqual(ftp.ftp.sock.gettimeout(), 30) # ftp.close() # # def testTimeoutDefault(self): # # global default timeout is used # import socket # self.assertIsNone(socket.getdefaulttimeout()) # socket.setdefaulttimeout(30) # try: # ftp = urllib.ftpwrapper("myuser", "mypass", "localhost", 9093, []) # finally: # socket.setdefaulttimeout(None) # self.assertEqual(ftp.ftp.sock.gettimeout(), 30) # ftp.close() # # def testTimeoutValue(self): # ftp = urllib.ftpwrapper("myuser", "mypass", "localhost", 9093, [], # timeout=30) # self.assertEqual(ftp.ftp.sock.gettimeout(), 30) # ftp.close() def test_main(): import warnings with warnings.catch_warnings(): warnings.filterwarnings('ignore', ".*urllib\.urlopen.*Python 3.0", DeprecationWarning) test_support.run_unittest( urlopen_FileTests, urlopen_HttpTests, urlretrieve_FileTests, urlretrieve_HttpTests, ProxyTests, QuotingTests, UnquotingTests, urlencode_Tests, Pathname_Tests, Utility_Tests, URLopener_Tests, ProxyTests, ProxyTests_withOrderedEnv, #FTPWrapperTests, ) 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]