003 File Manager
Current Path:
/usr/local/lib/python3.8/test
usr
/
local
/
lib
/
python3.8
/
test
/
π
..
π
Sine-1000Hz-300ms.aif
(60.25 KB)
π
__init__.py
(47 B)
π
__main__.py
(41 B)
π
__pycache__
π
_test_multiprocessing.py
(183.09 KB)
π
allsans.pem
(9.87 KB)
π
ann_module.py
(1.08 KB)
π
ann_module2.py
(519 B)
π
ann_module3.py
(448 B)
π
audiodata
π
audiotest.au
(27.48 KB)
π
audiotests.py
(12.46 KB)
π
audit-tests.py
(8.9 KB)
π
autotest.py
(209 B)
π
bad_coding.py
(24 B)
π
bad_coding2.py
(30 B)
π
bad_getattr.py
(61 B)
π
bad_getattr2.py
(77 B)
π
bad_getattr3.py
(139 B)
π
badcert.pem
(1.88 KB)
π
badkey.pem
(2.11 KB)
π
badsyntax_3131.py
(32 B)
π
badsyntax_future10.py
(95 B)
π
badsyntax_future3.py
(172 B)
π
badsyntax_future4.py
(153 B)
π
badsyntax_future5.py
(184 B)
π
badsyntax_future6.py
(161 B)
π
badsyntax_future7.py
(196 B)
π
badsyntax_future8.py
(122 B)
π
badsyntax_future9.py
(142 B)
π
badsyntax_pep3120.py
(14 B)
π
bisect_cmd.py
(4.85 KB)
π
bytecode_helper.py
(1.56 KB)
π
capath
π
cfgparser.1
(67 B)
π
cfgparser.2
(19.02 KB)
π
cfgparser.3
(1.55 KB)
π
cjkencodings
π
clinic.test
(94.65 KB)
π
cmath_testcases.txt
(141.05 KB)
π
coding20731.py
(22 B)
π
curses_tests.py
(1.22 KB)
π
data
π
dataclass_module_1.py
(837 B)
π
dataclass_module_1_str.py
(835 B)
π
dataclass_module_2.py
(756 B)
π
dataclass_module_2_str.py
(754 B)
π
dataclass_textanno.py
(126 B)
π
datetimetester.py
(239.84 KB)
π
decimaltestdata
π
dis_module.py
(76 B)
π
doctest_aliases.py
(240 B)
π
double_const.py
(1.18 KB)
π
dtracedata
π
eintrdata
π
empty.vbs
(70 B)
π
encoded_modules
π
exception_hierarchy.txt
(1.78 KB)
π
ffdh3072.pem
(2.16 KB)
π
final_a.py
(411 B)
π
final_b.py
(411 B)
π
floating_points.txt
(15.92 KB)
π
fork_wait.py
(2.53 KB)
π
formatfloat_testcases.txt
(7.45 KB)
π
future_test1.py
(229 B)
π
future_test2.py
(149 B)
π
gdb_sample.py
(153 B)
π
good_getattr.py
(198 B)
π
idnsans.pem
(9.71 KB)
π
ieee754.txt
(3.21 KB)
π
imghdrdata
π
imp_dummy.py
(63 B)
π
inspect_fodder.py
(1.88 KB)
π
inspect_fodder2.py
(2.06 KB)
π
keycert.passwd.pem
(4.13 KB)
π
keycert.pem
(3.96 KB)
π
keycert2.pem
(3.98 KB)
π
keycert3.pem
(9.23 KB)
π
keycert4.pem
(9.24 KB)
π
keycertecc.pem
(5.5 KB)
π
libregrtest
π
list_tests.py
(16.54 KB)
π
lock_tests.py
(28.26 KB)
π
mailcap.txt
(1.24 KB)
π
make_ssl_certs.py
(9.25 KB)
π
mapping_tests.py
(21.75 KB)
π
math_testcases.txt
(23.19 KB)
π
memory_watchdog.py
(859 B)
π
mime.types
(47.37 KB)
π
mock_socket.py
(3.53 KB)
π
mod_generics_cache.py
(1.13 KB)
π
mp_fork_bomb.py
(448 B)
π
mp_preload.py
(351 B)
π
multibytecodec_support.py
(14.17 KB)
π
nokia.pem
(1.88 KB)
π
nosan.pem
(7.54 KB)
π
nullbytecert.pem
(5.31 KB)
π
nullcert.pem
(0 B)
π
outstanding_bugs.py
(370 B)
π
pickletester.py
(135.99 KB)
π
profilee.py
(2.97 KB)
π
pstats.pck
(65.05 KB)
π
pycacert.pem
(5.53 KB)
π
pycakey.pem
(2.43 KB)
π
pyclbr_input.py
(648 B)
π
pydoc_mod.py
(713 B)
π
pydocfodder.py
(6.18 KB)
π
pythoninfo.py
(20.34 KB)
π
randv2_32.pck
(7.34 KB)
π
randv2_64.pck
(7.19 KB)
π
randv3.pck
(7.82 KB)
π
re_tests.py
(25.93 KB)
π
recursion.tar
(516 B)
π
regrtest.py
(1.34 KB)
π
relimport.py
(27 B)
π
reperf.py
(538 B)
π
revocation.crl
(800 B)
π
sample_doctest.py
(1.02 KB)
π
sample_doctest_no_docstrings.py
(227 B)
π
sample_doctest_no_doctests.py
(269 B)
π
secp384r1.pem
(256 B)
π
selfsigned_pythontestdotnet.pem
(2.08 KB)
π
seq_tests.py
(14.18 KB)
π
sgml_input.html
(8.1 KB)
π
signalinterproctester.py
(2.7 KB)
π
sndhdrdata
π
sortperf.py
(4.69 KB)
π
ssl_cert.pem
(1.53 KB)
π
ssl_key.passwd.pem
(2.59 KB)
π
ssl_key.pem
(2.43 KB)
π
ssl_servers.py
(7.04 KB)
π
ssltests.py
(1.03 KB)
π
string_tests.py
(64.65 KB)
π
subprocessdata
π
support
π
talos-2019-0758.pem
(1.3 KB)
π
test___all__.py
(4.12 KB)
π
test___future__.py
(2.36 KB)
π
test__locale.py
(7.83 KB)
π
test__opcode.py
(3.03 KB)
π
test__osx_support.py
(13.66 KB)
π
test__xxsubinterpreters.py
(68.7 KB)
π
test_abc.py
(18 KB)
π
test_abstract_numbers.py
(1.49 KB)
π
test_aifc.py
(17.68 KB)
π
test_argparse.py
(172.67 KB)
π
test_array.py
(52.57 KB)
π
test_asdl_parser.py
(4.15 KB)
π
test_ast.py
(88.53 KB)
π
test_asyncgen.py
(31.44 KB)
π
test_asynchat.py
(9.28 KB)
π
test_asyncio
π
test_asyncore.py
(25.81 KB)
π
test_atexit.py
(5.81 KB)
π
test_audioop.py
(28.24 KB)
π
test_audit.py
(4.05 KB)
π
test_augassign.py
(7.68 KB)
π
test_base64.py
(30.17 KB)
π
test_baseexception.py
(6.86 KB)
π
test_bdb.py
(41.55 KB)
π
test_bigaddrspace.py
(2.92 KB)
π
test_bigmem.py
(44.88 KB)
π
test_binascii.py
(18 KB)
π
test_binhex.py
(1.79 KB)
π
test_binop.py
(14.14 KB)
π
test_bisect.py
(13.63 KB)
π
test_bool.py
(12.48 KB)
π
test_buffer.py
(160.04 KB)
π
test_bufio.py
(2.54 KB)
π
test_builtin.py
(78.38 KB)
π
test_bytes.py
(72.23 KB)
π
test_bz2.py
(36.76 KB)
π
test_c_locale_coercion.py
(18.82 KB)
π
test_calendar.py
(48.71 KB)
π
test_call.py
(20.88 KB)
π
test_capi.py
(30.46 KB)
π
test_cgi.py
(22.15 KB)
π
test_cgitb.py
(2.5 KB)
π
test_charmapcodec.py
(1.68 KB)
π
test_class.py
(17.42 KB)
π
test_clinic.py
(21.71 KB)
π
test_cmath.py
(24.07 KB)
π
test_cmd.py
(6.1 KB)
π
test_cmd_line.py
(33.72 KB)
π
test_cmd_line_script.py
(31.46 KB)
π
test_code.py
(13.66 KB)
π
test_code_module.py
(5.51 KB)
π
test_codeccallbacks.py
(40.97 KB)
π
test_codecencodings_cn.py
(3.86 KB)
π
test_codecencodings_hk.py
(701 B)
π
test_codecencodings_iso2022.py
(1.36 KB)
π
test_codecencodings_jp.py
(4.79 KB)
π
test_codecencodings_kr.py
(2.96 KB)
π
test_codecencodings_tw.py
(681 B)
π
test_codecmaps_cn.py
(746 B)
π
test_codecmaps_hk.py
(386 B)
π
test_codecmaps_jp.py
(1.7 KB)
π
test_codecmaps_kr.py
(1.16 KB)
π
test_codecmaps_tw.py
(705 B)
π
test_codecs.py
(129.38 KB)
π
test_codeop.py
(7.97 KB)
π
test_collections.py
(83.93 KB)
π
test_colorsys.py
(3.83 KB)
π
test_compare.py
(3.82 KB)
π
test_compile.py
(36.48 KB)
π
test_compileall.py
(26.7 KB)
π
test_complex.py
(30.24 KB)
π
test_concurrent_futures.py
(44.93 KB)
π
test_configparser.py
(84.93 KB)
π
test_contains.py
(3.49 KB)
π
test_context.py
(29.33 KB)
π
test_contextlib.py
(32.54 KB)
π
test_contextlib_async.py
(14.82 KB)
π
test_copy.py
(25.81 KB)
π
test_copyreg.py
(4.39 KB)
π
test_coroutines.py
(62.52 KB)
π
test_cprofile.py
(6.33 KB)
π
test_crashers.py
(1.17 KB)
π
test_crypt.py
(3.97 KB)
π
test_csv.py
(47.77 KB)
π
test_ctypes.py
(184 B)
π
test_curses.py
(45.47 KB)
π
test_dataclasses.py
(108.8 KB)
π
test_datetime.py
(2.15 KB)
π
test_dbm.py
(6.45 KB)
π
test_dbm_dumb.py
(10.61 KB)
π
test_dbm_gnu.py
(6.22 KB)
π
test_dbm_ndbm.py
(5.05 KB)
π
test_decimal.py
(206.63 KB)
π
test_decorators.py
(9.48 KB)
π
test_defaultdict.py
(5.88 KB)
π
test_deque.py
(34.46 KB)
π
test_descr.py
(190.58 KB)
π
test_descrtut.py
(11.53 KB)
π
test_devpoll.py
(4.5 KB)
π
test_dict.py
(45 KB)
π
test_dict_version.py
(5.88 KB)
π
test_dictcomps.py
(4.42 KB)
π
test_dictviews.py
(11.68 KB)
π
test_difflib.py
(19.64 KB)
π
test_difflib_expect.html
(100.85 KB)
π
test_dis.py
(48.4 KB)
π
test_distutils.py
(375 B)
π
test_doctest.py
(98.67 KB)
π
test_doctest.txt
(300 B)
π
test_doctest2.py
(2.3 KB)
π
test_doctest2.txt
(392 B)
π
test_doctest3.txt
(82 B)
π
test_doctest4.txt
(244 B)
π
test_docxmlrpc.py
(8.67 KB)
π
test_dtrace.py
(5.23 KB)
π
test_dummy_thread.py
(9.69 KB)
π
test_dummy_threading.py
(1.7 KB)
π
test_dynamic.py
(4.29 KB)
π
test_dynamicclassattribute.py
(9.57 KB)
π
test_eintr.py
(1.32 KB)
π
test_email
π
test_embed.py
(49.23 KB)
π
test_ensurepip.py
(9.83 KB)
π
test_enum.py
(113.68 KB)
π
test_enumerate.py
(8.46 KB)
π
test_eof.py
(1.94 KB)
π
test_epoll.py
(9.03 KB)
π
test_errno.py
(1.04 KB)
π
test_exception_hierarchy.py
(7.43 KB)
π
test_exception_variations.py
(3.86 KB)
π
test_exceptions.py
(49.81 KB)
π
test_extcall.py
(13.49 KB)
π
test_faulthandler.py
(28.13 KB)
π
test_fcntl.py
(6.21 KB)
π
test_file.py
(11.02 KB)
π
test_file_eintr.py
(10.6 KB)
π
test_filecmp.py
(8.69 KB)
π
test_fileinput.py
(37.33 KB)
π
test_fileio.py
(19.96 KB)
π
test_finalization.py
(14.66 KB)
π
test_float.py
(63.41 KB)
π
test_flufl.py
(1.32 KB)
π
test_fnmatch.py
(5.07 KB)
π
test_fork1.py
(3.67 KB)
π
test_format.py
(22.58 KB)
π
test_fractions.py
(29.83 KB)
π
test_frame.py
(5.67 KB)
π
test_frozen.py
(943 B)
π
test_fstring.py
(46.16 KB)
π
test_ftplib.py
(39.71 KB)
π
test_funcattrs.py
(13.54 KB)
π
test_functools.py
(90.59 KB)
π
test_future.py
(11.9 KB)
π
test_future3.py
(490 B)
π
test_future4.py
(222 B)
π
test_future5.py
(510 B)
π
test_gc.py
(40.49 KB)
π
test_gdb.py
(40.88 KB)
π
test_generator_stop.py
(943 B)
π
test_generators.py
(58.51 KB)
π
test_genericclass.py
(9.28 KB)
π
test_genericpath.py
(21.7 KB)
π
test_genexps.py
(7.12 KB)
π
test_getargs2.py
(50 KB)
π
test_getopt.py
(6.75 KB)
π
test_getpass.py
(6.29 KB)
π
test_gettext.py
(41.38 KB)
π
test_glob.py
(13.03 KB)
π
test_global.py
(1.31 KB)
π
test_grammar.py
(57.5 KB)
π
test_grp.py
(3.54 KB)
π
test_gzip.py
(29.9 KB)
π
test_hash.py
(11.45 KB)
π
test_hashlib.py
(39.43 KB)
π
test_heapq.py
(16.4 KB)
π
test_hmac.py
(22.24 KB)
π
test_html.py
(4.23 KB)
π
test_htmlparser.py
(33.19 KB)
π
test_http_cookiejar.py
(78.36 KB)
π
test_http_cookies.py
(18.71 KB)
π
test_httplib.py
(76.98 KB)
π
test_httpservers.py
(45.24 KB)
π
test_idle.py
(825 B)
π
test_imaplib.py
(38.95 KB)
π
test_imghdr.py
(4.66 KB)
π
test_imp.py
(17.73 KB)
π
test_import
π
test_importlib
π
test_index.py
(8.37 KB)
π
test_inspect.py
(151.79 KB)
π
test_int.py
(20.8 KB)
π
test_int_literal.py
(6.89 KB)
π
test_io.py
(163.94 KB)
π
test_ioctl.py
(3.2 KB)
π
test_ipaddress.py
(90.98 KB)
π
test_isinstance.py
(10.25 KB)
π
test_iter.py
(31.81 KB)
π
test_iterlen.py
(7.1 KB)
π
test_itertools.py
(101.41 KB)
π
test_json
π
test_keyword.py
(1.23 KB)
π
test_keywordonlyarg.py
(6.85 KB)
π
test_kqueue.py
(8.76 KB)
π
test_largefile.py
(6.83 KB)
π
test_lib2to3.py
(101 B)
π
test_linecache.py
(7.79 KB)
π
test_list.py
(7.4 KB)
π
test_listcomps.py
(3.76 KB)
π
test_lltrace.py
(1012 B)
π
test_locale.py
(23.87 KB)
π
test_logging.py
(182.43 KB)
π
test_long.py
(53.21 KB)
π
test_longexp.py
(233 B)
π
test_lzma.py
(87.92 KB)
π
test_mailbox.py
(91.92 KB)
π
test_mailcap.py
(9.88 KB)
π
test_marshal.py
(20.57 KB)
π
test_math.py
(82.18 KB)
π
test_memoryio.py
(31.48 KB)
π
test_memoryview.py
(17.78 KB)
π
test_metaclass.py
(6.2 KB)
π
test_mimetypes.py
(12.14 KB)
π
test_minidom.py
(66.95 KB)
π
test_mmap.py
(29.04 KB)
π
test_module.py
(10.3 KB)
π
test_modulefinder.py
(12.2 KB)
π
test_msilib.py
(5.06 KB)
π
test_multibytecodec.py
(15.04 KB)
π
test_multiprocessing_fork.py
(477 B)
π
test_multiprocessing_forkserver.py
(392 B)
π
test_multiprocessing_main_handling.py
(11.45 KB)
π
test_multiprocessing_spawn.py
(277 B)
π
test_named_expressions.py
(16.51 KB)
π
test_netrc.py
(5.96 KB)
π
test_nis.py
(1.13 KB)
π
test_nntplib.py
(61.7 KB)
π
test_normalization.py
(3.66 KB)
π
test_ntpath.py
(35.08 KB)
π
test_numeric_tower.py
(7.18 KB)
π
test_opcodes.py
(3.61 KB)
π
test_openpty.py
(600 B)
π
test_operator.py
(23.54 KB)
π
test_optparse.py
(60.99 KB)
π
test_ordered_dict.py
(30.22 KB)
π
test_os.py
(150.53 KB)
π
test_ossaudiodev.py
(7.06 KB)
π
test_osx_env.py
(1.3 KB)
π
test_parser.py
(35.72 KB)
π
test_pathlib.py
(97.12 KB)
π
test_pdb.py
(55.36 KB)
π
test_peepholer.py
(19.41 KB)
π
test_pickle.py
(19.16 KB)
π
test_picklebuffer.py
(4.96 KB)
π
test_pickletools.py
(4.33 KB)
π
test_pipes.py
(6.59 KB)
π
test_pkg.py
(9.59 KB)
π
test_pkgimport.py
(2.67 KB)
π
test_pkgutil.py
(19.25 KB)
π
test_platform.py
(14.31 KB)
π
test_plistlib.py
(41.43 KB)
π
test_poll.py
(7.23 KB)
π
test_popen.py
(1.98 KB)
π
test_poplib.py
(16.97 KB)
π
test_positional_only_arg.py
(17.5 KB)
π
test_posix.py
(75.76 KB)
π
test_posixpath.py
(29.19 KB)
π
test_pow.py
(5.44 KB)
π
test_pprint.py
(43.85 KB)
π
test_print.py
(7.37 KB)
π
test_profile.py
(8.72 KB)
π
test_property.py
(8.77 KB)
π
test_pstats.py
(3.04 KB)
π
test_pty.py
(11.97 KB)
π
test_pulldom.py
(12.66 KB)
π
test_pwd.py
(4.17 KB)
π
test_py_compile.py
(10.78 KB)
π
test_pyclbr.py
(10 KB)
π
test_pydoc.py
(56.98 KB)
π
test_pyexpat.py
(26.54 KB)
π
test_queue.py
(20.36 KB)
π
test_quopri.py
(7.78 KB)
π
test_raise.py
(12.86 KB)
π
test_random.py
(45.59 KB)
π
test_range.py
(23.35 KB)
π
test_re.py
(106.41 KB)
π
test_readline.py
(12.95 KB)
π
test_regrtest.py
(46.36 KB)
π
test_repl.py
(3.96 KB)
π
test_reprlib.py
(15.12 KB)
π
test_resource.py
(7.02 KB)
π
test_richcmp.py
(11.91 KB)
π
test_rlcompleter.py
(6.3 KB)
π
test_robotparser.py
(10.69 KB)
π
test_runpy.py
(33.86 KB)
π
test_sax.py
(46.9 KB)
π
test_sched.py
(6.41 KB)
π
test_scope.py
(19.7 KB)
π
test_script_helper.py
(5.78 KB)
π
test_secrets.py
(4.28 KB)
π
test_select.py
(2.69 KB)
π
test_selectors.py
(17.79 KB)
π
test_set.py
(64.41 KB)
π
test_setcomps.py
(3.7 KB)
π
test_shelve.py
(6.24 KB)
π
test_shlex.py
(13.29 KB)
π
test_shutil.py
(101.55 KB)
π
test_signal.py
(46.62 KB)
π
test_site.py
(24.71 KB)
π
test_slice.py
(8.25 KB)
π
test_smtpd.py
(40.14 KB)
π
test_smtplib.py
(56.51 KB)
π
test_smtpnet.py
(2.87 KB)
π
test_sndhdr.py
(1.43 KB)
π
test_socket.py
(232.71 KB)
π
test_socketserver.py
(17.7 KB)
π
test_sort.py
(13.42 KB)
π
test_source_encoding.py
(7.89 KB)
π
test_spwd.py
(2.71 KB)
π
test_sqlite.py
(948 B)
π
test_ssl.py
(203.3 KB)
π
test_startfile.py
(1.29 KB)
π
test_stat.py
(8.3 KB)
π
test_statistics.py
(106.5 KB)
π
test_strftime.py
(7.54 KB)
π
test_string.py
(19.8 KB)
π
test_string_literals.py
(9.88 KB)
π
test_stringprep.py
(3.04 KB)
π
test_strptime.py
(34.42 KB)
π
test_strtod.py
(20.06 KB)
π
test_struct.py
(34.41 KB)
π
test_structmembers.py
(4.7 KB)
π
test_structseq.py
(3.87 KB)
π
test_subclassinit.py
(8.12 KB)
π
test_subprocess.py
(142.64 KB)
π
test_sunau.py
(6.07 KB)
π
test_sundry.py
(2.07 KB)
π
test_super.py
(9.6 KB)
π
test_support.py
(24.12 KB)
π
test_symbol.py
(2.06 KB)
π
test_symtable.py
(9.13 KB)
π
test_syntax.py
(25.75 KB)
π
test_sys.py
(55.24 KB)
π
test_sys_setprofile.py
(12.31 KB)
π
test_sys_settrace.py
(43.08 KB)
π
test_sysconfig.py
(17.01 KB)
π
test_syslog.py
(1.15 KB)
π
test_tabnanny.py
(13.44 KB)
π
test_tarfile.py
(98.31 KB)
π
test_tcl.py
(30.74 KB)
π
test_telnetlib.py
(12.7 KB)
π
test_tempfile.py
(52.57 KB)
π
test_textwrap.py
(38.84 KB)
π
test_thread.py
(8.41 KB)
π
test_threaded_import.py
(8.9 KB)
π
test_threadedtempfile.py
(1.85 KB)
π
test_threading.py
(47.52 KB)
π
test_threading_local.py
(6.09 KB)
π
test_threadsignals.py
(10.09 KB)
π
test_time.py
(38.43 KB)
π
test_timeit.py
(14.8 KB)
π
test_timeout.py
(11.19 KB)
π
test_tix.py
(756 B)
π
test_tk.py
(362 B)
π
test_tokenize.py
(63.18 KB)
π
test_tools
π
test_trace.py
(19.89 KB)
π
test_traceback.py
(46.97 KB)
π
test_tracemalloc.py
(37.41 KB)
π
test_ttk_guionly.py
(746 B)
π
test_ttk_textonly.py
(299 B)
π
test_tuple.py
(18.85 KB)
π
test_turtle.py
(12.79 KB)
π
test_type_comments.py
(10.13 KB)
π
test_typechecks.py
(2.55 KB)
π
test_types.py
(58 KB)
π
test_typing.py
(122.05 KB)
π
test_ucn.py
(9.35 KB)
π
test_unary.py
(1.63 KB)
π
test_unicode.py
(129.94 KB)
π
test_unicode_file.py
(5.74 KB)
π
test_unicode_file_functions.py
(6.84 KB)
π
test_unicode_identifiers.py
(891 B)
π
test_unicodedata.py
(12.7 KB)
π
test_unittest.py
(286 B)
π
test_univnewlines.py
(3.83 KB)
π
test_unpack.py
(3.01 KB)
π
test_unpack_ex.py
(8.73 KB)
π
test_urllib.py
(71.24 KB)
π
test_urllib2.py
(76.95 KB)
π
test_urllib2_localnet.py
(24.24 KB)
π
test_urllib2net.py
(12.39 KB)
π
test_urllib_response.py
(1.69 KB)
π
test_urllibnet.py
(8.9 KB)
π
test_urlparse.py
(64.87 KB)
π
test_userdict.py
(7.64 KB)
π
test_userlist.py
(1.97 KB)
π
test_userstring.py
(2.4 KB)
π
test_utf8_mode.py
(9.22 KB)
π
test_utf8source.py
(1.15 KB)
π
test_uu.py
(8.02 KB)
π
test_uuid.py
(35.74 KB)
π
test_venv.py
(20.46 KB)
π
test_wait3.py
(1.16 KB)
π
test_wait4.py
(1.15 KB)
π
test_warnings
π
test_wave.py
(6.57 KB)
π
test_weakref.py
(69.47 KB)
π
test_weakset.py
(15.03 KB)
π
test_webbrowser.py
(10.47 KB)
π
test_winconsoleio.py
(6.14 KB)
π
test_winreg.py
(21.38 KB)
π
test_winsound.py
(4.57 KB)
π
test_with.py
(25.78 KB)
π
test_wsgiref.py
(30.1 KB)
π
test_xdrlib.py
(2.17 KB)
π
test_xml_dom_minicompat.py
(4.18 KB)
π
test_xml_etree.py
(147.87 KB)
π
test_xml_etree_c.py
(8.06 KB)
π
test_xmlrpc.py
(55.96 KB)
π
test_xmlrpc_net.py
(1015 B)
π
test_xxtestfuzz.py
(670 B)
π
test_yield_from.py
(30.01 KB)
π
test_zipapp.py
(15.92 KB)
π
test_zipfile.py
(115.45 KB)
π
test_zipfile64.py
(5.8 KB)
π
test_zipimport.py
(29.28 KB)
π
test_zipimport_support.py
(10.44 KB)
π
test_zlib.py
(34.48 KB)
π
testcodec.py
(1.02 KB)
π
testtar.tar
(425 KB)
π
tf_inherit_check.py
(714 B)
π
threaded_import_hangers.py
(1.45 KB)
π
time_hashlib.py
(2.87 KB)
π
tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt
(443 B)
π
tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt
(302 B)
π
tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
(421 B)
π
tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
(326 B)
π
tokenize_tests.txt
(2.65 KB)
π
tracedmodules
π
win_console_handler.py
(1.38 KB)
π
xmltestdata
π
xmltests.py
(499 B)
π
zip_cp437_header.zip
(270 B)
π
zipdir.zip
(374 B)
π
ziptestdata
Editing: test_venv.py
""" Test harness for the venv module. Copyright (C) 2011-2012 Vinay Sajip. Licensed to the PSF under a contributor agreement. """ import ensurepip import os import os.path import re import shutil import struct import subprocess import sys import tempfile from test.support import (captured_stdout, captured_stderr, requires_zlib, can_symlink, EnvironmentVarGuard, rmtree, import_module, skip_if_broken_multiprocessing_synchronize) import threading import unittest import venv try: import ctypes except ImportError: ctypes = None # Platforms that set sys._base_executable can create venvs from within # another venv, so no need to skip tests that require venv.create(). requireVenvCreate = unittest.skipUnless( sys.prefix == sys.base_prefix or sys._base_executable != sys.executable, 'cannot run venv.create from within a venv on this platform') def check_output(cmd, encoding=None): p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, encoding=encoding) out, err = p.communicate() if p.returncode: raise subprocess.CalledProcessError( p.returncode, cmd, out, err) return out, err class BaseTest(unittest.TestCase): """Base class for venv tests.""" maxDiff = 80 * 50 def setUp(self): self.env_dir = os.path.realpath(tempfile.mkdtemp()) if os.name == 'nt': self.bindir = 'Scripts' self.lib = ('Lib',) self.include = 'Include' else: self.bindir = 'bin' self.lib = ('lib', 'python%d.%d' % sys.version_info[:2]) self.include = 'include' executable = sys._base_executable self.exe = os.path.split(executable)[-1] if (sys.platform == 'win32' and os.path.lexists(executable) and not os.path.exists(executable)): self.cannot_link_exe = True else: self.cannot_link_exe = False def tearDown(self): rmtree(self.env_dir) def run_with_capture(self, func, *args, **kwargs): with captured_stdout() as output: with captured_stderr() as error: func(*args, **kwargs) return output.getvalue(), error.getvalue() def get_env_file(self, *args): return os.path.join(self.env_dir, *args) def get_text_file_contents(self, *args): with open(self.get_env_file(*args), 'r') as f: result = f.read() return result class BasicTest(BaseTest): """Test venv module functionality.""" def isdir(self, *args): fn = self.get_env_file(*args) self.assertTrue(os.path.isdir(fn)) def test_defaults(self): """ Test the create function with default arguments. """ rmtree(self.env_dir) self.run_with_capture(venv.create, self.env_dir) self.isdir(self.bindir) self.isdir(self.include) self.isdir(*self.lib) # Issue 21197 p = self.get_env_file('lib64') conditions = ((struct.calcsize('P') == 8) and (os.name == 'posix') and (sys.platform != 'darwin')) if conditions: self.assertTrue(os.path.islink(p)) else: self.assertFalse(os.path.exists(p)) data = self.get_text_file_contents('pyvenv.cfg') executable = sys._base_executable path = os.path.dirname(executable) self.assertIn('home = %s' % path, data) fn = self.get_env_file(self.bindir, self.exe) if not os.path.exists(fn): # diagnostics for Windows buildbot failures bd = self.get_env_file(self.bindir) print('Contents of %r:' % bd) print(' %r' % os.listdir(bd)) self.assertTrue(os.path.exists(fn), 'File %r should exist.' % fn) def test_prompt(self): env_name = os.path.split(self.env_dir)[1] rmtree(self.env_dir) builder = venv.EnvBuilder() self.run_with_capture(builder.create, self.env_dir) context = builder.ensure_directories(self.env_dir) data = self.get_text_file_contents('pyvenv.cfg') self.assertEqual(context.prompt, '(%s) ' % env_name) self.assertNotIn("prompt = ", data) rmtree(self.env_dir) builder = venv.EnvBuilder(prompt='My prompt') self.run_with_capture(builder.create, self.env_dir) context = builder.ensure_directories(self.env_dir) data = self.get_text_file_contents('pyvenv.cfg') self.assertEqual(context.prompt, '(My prompt) ') self.assertIn("prompt = 'My prompt'\n", data) @requireVenvCreate def test_prefixes(self): """ Test that the prefix values are as expected. """ # check a venv's prefixes rmtree(self.env_dir) self.run_with_capture(venv.create, self.env_dir) envpy = os.path.join(self.env_dir, self.bindir, self.exe) cmd = [envpy, '-c', None] for prefix, expected in ( ('prefix', self.env_dir), ('exec_prefix', self.env_dir), ('base_prefix', sys.base_prefix), ('base_exec_prefix', sys.base_exec_prefix)): cmd[2] = 'import sys; print(sys.%s)' % prefix out, err = check_output(cmd) self.assertEqual(out.strip(), expected.encode()) if sys.platform == 'win32': ENV_SUBDIRS = ( ('Scripts',), ('Include',), ('Lib',), ('Lib', 'site-packages'), ) else: ENV_SUBDIRS = ( ('bin',), ('include',), ('lib',), ('lib', 'python%d.%d' % sys.version_info[:2]), ('lib', 'python%d.%d' % sys.version_info[:2], 'site-packages'), ) def create_contents(self, paths, filename): """ Create some files in the environment which are unrelated to the virtual environment. """ for subdirs in paths: d = os.path.join(self.env_dir, *subdirs) os.mkdir(d) fn = os.path.join(d, filename) with open(fn, 'wb') as f: f.write(b'Still here?') def test_overwrite_existing(self): """ Test creating environment in an existing directory. """ self.create_contents(self.ENV_SUBDIRS, 'foo') venv.create(self.env_dir) for subdirs in self.ENV_SUBDIRS: fn = os.path.join(self.env_dir, *(subdirs + ('foo',))) self.assertTrue(os.path.exists(fn)) with open(fn, 'rb') as f: self.assertEqual(f.read(), b'Still here?') builder = venv.EnvBuilder(clear=True) builder.create(self.env_dir) for subdirs in self.ENV_SUBDIRS: fn = os.path.join(self.env_dir, *(subdirs + ('foo',))) self.assertFalse(os.path.exists(fn)) def clear_directory(self, path): for fn in os.listdir(path): fn = os.path.join(path, fn) if os.path.islink(fn) or os.path.isfile(fn): os.remove(fn) elif os.path.isdir(fn): rmtree(fn) def test_unoverwritable_fails(self): #create a file clashing with directories in the env dir for paths in self.ENV_SUBDIRS[:3]: fn = os.path.join(self.env_dir, *paths) with open(fn, 'wb') as f: f.write(b'') self.assertRaises((ValueError, OSError), venv.create, self.env_dir) self.clear_directory(self.env_dir) def test_upgrade(self): """ Test upgrading an existing environment directory. """ # See Issue #21643: the loop needs to run twice to ensure # that everything works on the upgrade (the first run just creates # the venv). for upgrade in (False, True): builder = venv.EnvBuilder(upgrade=upgrade) self.run_with_capture(builder.create, self.env_dir) self.isdir(self.bindir) self.isdir(self.include) self.isdir(*self.lib) fn = self.get_env_file(self.bindir, self.exe) if not os.path.exists(fn): # diagnostics for Windows buildbot failures bd = self.get_env_file(self.bindir) print('Contents of %r:' % bd) print(' %r' % os.listdir(bd)) self.assertTrue(os.path.exists(fn), 'File %r should exist.' % fn) def test_isolation(self): """ Test isolation from system site-packages """ for ssp, s in ((True, 'true'), (False, 'false')): builder = venv.EnvBuilder(clear=True, system_site_packages=ssp) builder.create(self.env_dir) data = self.get_text_file_contents('pyvenv.cfg') self.assertIn('include-system-site-packages = %s\n' % s, data) @unittest.skipUnless(can_symlink(), 'Needs symlinks') def test_symlinking(self): """ Test symlinking works as expected """ for usl in (False, True): builder = venv.EnvBuilder(clear=True, symlinks=usl) builder.create(self.env_dir) fn = self.get_env_file(self.bindir, self.exe) # Don't test when False, because e.g. 'python' is always # symlinked to 'python3.3' in the env, even when symlinking in # general isn't wanted. if usl: if self.cannot_link_exe: # Symlinking is skipped when our executable is already a # special app symlink self.assertFalse(os.path.islink(fn)) else: self.assertTrue(os.path.islink(fn)) # If a venv is created from a source build and that venv is used to # run the test, the pyvenv.cfg in the venv created in the test will # point to the venv being used to run the test, and we lose the link # to the source build - so Python can't initialise properly. @requireVenvCreate def test_executable(self): """ Test that the sys.executable value is as expected. """ rmtree(self.env_dir) self.run_with_capture(venv.create, self.env_dir) envpy = os.path.join(os.path.realpath(self.env_dir), self.bindir, self.exe) out, err = check_output([envpy, '-c', 'import sys; print(sys.executable)']) self.assertEqual(out.strip(), envpy.encode()) @unittest.skipUnless(can_symlink(), 'Needs symlinks') def test_executable_symlinks(self): """ Test that the sys.executable value is as expected. """ rmtree(self.env_dir) builder = venv.EnvBuilder(clear=True, symlinks=True) builder.create(self.env_dir) envpy = os.path.join(os.path.realpath(self.env_dir), self.bindir, self.exe) out, err = check_output([envpy, '-c', 'import sys; print(sys.executable)']) self.assertEqual(out.strip(), envpy.encode()) @unittest.skipUnless(os.name == 'nt', 'only relevant on Windows') def test_unicode_in_batch_file(self): """ Test handling of Unicode paths """ rmtree(self.env_dir) env_dir = os.path.join(os.path.realpath(self.env_dir), 'ΟΌΡΠ’Ξ»Π€Π') builder = venv.EnvBuilder(clear=True) builder.create(env_dir) activate = os.path.join(env_dir, self.bindir, 'activate.bat') envpy = os.path.join(env_dir, self.bindir, self.exe) out, err = check_output( [activate, '&', self.exe, '-c', 'print(0)'], encoding='oem', ) self.assertEqual(out.strip(), '0') @requireVenvCreate def test_multiprocessing(self): """ Test that the multiprocessing is able to spawn. """ # bpo-36342: Instantiation of a Pool object imports the # multiprocessing.synchronize module. Skip the test if this module # cannot be imported. skip_if_broken_multiprocessing_synchronize() rmtree(self.env_dir) self.run_with_capture(venv.create, self.env_dir) envpy = os.path.join(os.path.realpath(self.env_dir), self.bindir, self.exe) out, err = check_output([envpy, '-c', 'from multiprocessing import Pool; ' 'pool = Pool(1); ' 'print(pool.apply_async("Python".lower).get(3)); ' 'pool.terminate()']) self.assertEqual(out.strip(), "python".encode()) @unittest.skipIf(os.name == 'nt', 'not relevant on Windows') def test_deactivate_with_strict_bash_opts(self): bash = shutil.which("bash") if bash is None: self.skipTest("bash required for this test") rmtree(self.env_dir) builder = venv.EnvBuilder(clear=True) builder.create(self.env_dir) activate = os.path.join(self.env_dir, self.bindir, "activate") test_script = os.path.join(self.env_dir, "test_strict.sh") with open(test_script, "w") as f: f.write("set -euo pipefail\n" f"source {activate}\n" "deactivate\n") out, err = check_output([bash, test_script]) self.assertEqual(out, "".encode()) self.assertEqual(err, "".encode()) @unittest.skipUnless(sys.platform == 'darwin', 'only relevant on macOS') def test_macos_env(self): rmtree(self.env_dir) builder = venv.EnvBuilder() builder.create(self.env_dir) envpy = os.path.join(os.path.realpath(self.env_dir), self.bindir, self.exe) out, err = check_output([envpy, '-c', 'import os; print("__PYVENV_LAUNCHER__" in os.environ)']) self.assertEqual(out.strip(), 'False'.encode()) @requireVenvCreate class EnsurePipTest(BaseTest): """Test venv module installation of pip.""" def assert_pip_not_installed(self): envpy = os.path.join(os.path.realpath(self.env_dir), self.bindir, self.exe) out, err = check_output([envpy, '-c', 'try:\n import pip\nexcept ImportError:\n print("OK")']) # We force everything to text, so unittest gives the detailed diff # if we get unexpected results err = err.decode("latin-1") # Force to text, prevent decoding errors self.assertEqual(err, "") out = out.decode("latin-1") # Force to text, prevent decoding errors self.assertEqual(out.strip(), "OK") def test_no_pip_by_default(self): rmtree(self.env_dir) self.run_with_capture(venv.create, self.env_dir) self.assert_pip_not_installed() def test_explicit_no_pip(self): rmtree(self.env_dir) self.run_with_capture(venv.create, self.env_dir, with_pip=False) self.assert_pip_not_installed() def test_devnull(self): # Fix for issue #20053 uses os.devnull to force a config file to # appear empty. However http://bugs.python.org/issue20541 means # that doesn't currently work properly on Windows. Once that is # fixed, the "win_location" part of test_with_pip should be restored with open(os.devnull, "rb") as f: self.assertEqual(f.read(), b"") self.assertTrue(os.path.exists(os.devnull)) def do_test_with_pip(self, system_site_packages): rmtree(self.env_dir) with EnvironmentVarGuard() as envvars: # pip's cross-version compatibility may trigger deprecation # warnings in current versions of Python. Ensure related # environment settings don't cause venv to fail. envvars["PYTHONWARNINGS"] = "e" # ensurepip is different enough from a normal pip invocation # that we want to ensure it ignores the normal pip environment # variable settings. We set PIP_NO_INSTALL here specifically # to check that ensurepip (and hence venv) ignores it. # See http://bugs.python.org/issue19734 envvars["PIP_NO_INSTALL"] = "1" # Also check that we ignore the pip configuration file # See http://bugs.python.org/issue20053 with tempfile.TemporaryDirectory() as home_dir: envvars["HOME"] = home_dir bad_config = "[global]\nno-install=1" # Write to both config file names on all platforms to reduce # cross-platform variation in test code behaviour win_location = ("pip", "pip.ini") posix_location = (".pip", "pip.conf") # Skips win_location due to http://bugs.python.org/issue20541 for dirname, fname in (posix_location,): dirpath = os.path.join(home_dir, dirname) os.mkdir(dirpath) fpath = os.path.join(dirpath, fname) with open(fpath, 'w') as f: f.write(bad_config) # Actually run the create command with all that unhelpful # config in place to ensure we ignore it try: self.run_with_capture(venv.create, self.env_dir, system_site_packages=system_site_packages, with_pip=True) except subprocess.CalledProcessError as exc: # The output this produces can be a little hard to read, # but at least it has all the details details = exc.output.decode(errors="replace") msg = "{}\n\n**Subprocess Output**\n{}" self.fail(msg.format(exc, details)) # Ensure pip is available in the virtual environment envpy = os.path.join(os.path.realpath(self.env_dir), self.bindir, self.exe) # Ignore DeprecationWarning since pip code is not part of Python out, err = check_output([envpy, '-W', 'ignore::DeprecationWarning', '-I', '-m', 'pip', '--version']) # We force everything to text, so unittest gives the detailed diff # if we get unexpected results err = err.decode("latin-1") # Force to text, prevent decoding errors self.assertEqual(err, "") out = out.decode("latin-1") # Force to text, prevent decoding errors expected_version = "pip {}".format(ensurepip.version()) self.assertEqual(out[:len(expected_version)], expected_version) env_dir = os.fsencode(self.env_dir).decode("latin-1") self.assertIn(env_dir, out) # http://bugs.python.org/issue19728 # Check the private uninstall command provided for the Windows # installers works (at least in a virtual environment) with EnvironmentVarGuard() as envvars: out, err = check_output([envpy, '-W', 'ignore::DeprecationWarning', '-I', '-m', 'ensurepip._uninstall']) # We force everything to text, so unittest gives the detailed diff # if we get unexpected results err = err.decode("latin-1") # Force to text, prevent decoding errors # Ignore the warning: # "The directory '$HOME/.cache/pip/http' or its parent directory # is not owned by the current user and the cache has been disabled. # Please check the permissions and owner of that directory. If # executing pip with sudo, you may want sudo's -H flag." # where $HOME is replaced by the HOME environment variable. err = re.sub("^(WARNING: )?The directory .* or its parent directory " "is not owned or is not writable by the current user.*$", "", err, flags=re.MULTILINE) self.assertEqual(err.rstrip(), "") # Being fairly specific regarding the expected behaviour for the # initial bundling phase in Python 3.4. If the output changes in # future pip versions, this test can likely be relaxed further. out = out.decode("latin-1") # Force to text, prevent decoding errors self.assertIn("Successfully uninstalled pip", out) self.assertIn("Successfully uninstalled setuptools", out) # Check pip is now gone from the virtual environment. This only # applies in the system_site_packages=False case, because in the # other case, pip may still be available in the system site-packages if not system_site_packages: self.assert_pip_not_installed() # Issue #26610: pip/pep425tags.py requires ctypes @unittest.skipUnless(ctypes, 'pip requires ctypes') @requires_zlib def test_with_pip(self): self.do_test_with_pip(False) self.do_test_with_pip(True) if __name__ == "__main__": unittest.main()
Upload File
Create Folder