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: re_tests.py
#!/usr/local/bin/python3.8 # -*- mode: python -*- # Re test suite and benchmark suite v1.5 # The 3 possible outcomes for each pattern [SUCCEED, FAIL, SYNTAX_ERROR] = range(3) # Benchmark suite (needs expansion) # # The benchmark suite does not test correctness, just speed. The # first element of each tuple is the regex pattern; the second is a # string to match it against. The benchmarking code will embed the # second string inside several sizes of padding, to test how regex # matching performs on large strings. benchmarks = [ # test common prefix ('Python|Perl', 'Perl'), # Alternation ('(Python|Perl)', 'Perl'), # Grouped alternation ('Python|Perl|Tcl', 'Perl'), # Alternation ('(Python|Perl|Tcl)', 'Perl'), # Grouped alternation ('(Python)\\1', 'PythonPython'), # Backreference ('([0a-z][a-z0-9]*,)+', 'a5,b7,c9,'), # Disable the fastmap optimization ('([a-z][a-z0-9]*,)+', 'a5,b7,c9,'), # A few sets ('Python', 'Python'), # Simple text literal ('.*Python', 'Python'), # Bad text literal ('.*Python.*', 'Python'), # Worse text literal ('.*(Python)', 'Python'), # Bad text literal with grouping ] # Test suite (for verifying correctness) # # The test suite is a list of 5- or 3-tuples. The 5 parts of a # complete tuple are: # element 0: a string containing the pattern # 1: the string to match against the pattern # 2: the expected result (SUCCEED, FAIL, SYNTAX_ERROR) # 3: a string that will be eval()'ed to produce a test string. # This is an arbitrary Python expression; the available # variables are "found" (the whole match), and "g1", "g2", ... # up to "g99" contain the contents of each group, or the # string 'None' if the group wasn't given a value, or the # string 'Error' if the group index was out of range; # also "groups", the return value of m.group() (a tuple). # 4: The expected result of evaluating the expression. # If the two don't match, an error is reported. # # If the regex isn't expected to work, the latter two elements can be omitted. tests = [ # Test ?P< and ?P= extensions ('(?P<foo_123', '', SYNTAX_ERROR), # Unterminated group identifier ('(?P<1>a)', '', SYNTAX_ERROR), # Begins with a digit ('(?P<!>a)', '', SYNTAX_ERROR), # Begins with an illegal char ('(?P<foo!>a)', '', SYNTAX_ERROR), # Begins with an illegal char # Same tests, for the ?P= form ('(?P<foo_123>a)(?P=foo_123', 'aa', SYNTAX_ERROR), ('(?P<foo_123>a)(?P=1)', 'aa', SYNTAX_ERROR), ('(?P<foo_123>a)(?P=!)', 'aa', SYNTAX_ERROR), ('(?P<foo_123>a)(?P=foo_124', 'aa', SYNTAX_ERROR), # Backref to undefined group ('(?P<foo_123>a)', 'a', SUCCEED, 'g1', 'a'), ('(?P<foo_123>a)(?P=foo_123)', 'aa', SUCCEED, 'g1', 'a'), # Test octal escapes ('\\1', 'a', SYNTAX_ERROR), # Backreference ('[\\1]', '\1', SUCCEED, 'found', '\1'), # Character ('\\09', chr(0) + '9', SUCCEED, 'found', chr(0) + '9'), ('\\141', 'a', SUCCEED, 'found', 'a'), ('(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)\\119', 'abcdefghijklk9', SUCCEED, 'found+"-"+g11', 'abcdefghijklk9-k'), # Test \0 is handled everywhere (r'\0', '\0', SUCCEED, 'found', '\0'), (r'[\0a]', '\0', SUCCEED, 'found', '\0'), (r'[a\0]', '\0', SUCCEED, 'found', '\0'), (r'[^a\0]', '\0', FAIL), # Test various letter escapes (r'\a[\b]\f\n\r\t\v', '\a\b\f\n\r\t\v', SUCCEED, 'found', '\a\b\f\n\r\t\v'), (r'[\a][\b][\f][\n][\r][\t][\v]', '\a\b\f\n\r\t\v', SUCCEED, 'found', '\a\b\f\n\r\t\v'), # NOTE: not an error under PCRE/PRE: (r'\u', '', SYNTAX_ERROR), # A Perl escape # (r'\c\e\g\h\i\j\k\m\o\p\q\y\z', 'ceghijkmopqyz', SUCCEED, 'found', 'ceghijkmopqyz'), # new \x semantics (r'\x00ffffffffffffff', '\377', FAIL, 'found', chr(255)), (r'\x00f', '\017', FAIL, 'found', chr(15)), (r'\x00fe', '\376', FAIL, 'found', chr(254)), # (r'\x00ffffffffffffff', '\377', SUCCEED, 'found', chr(255)), # (r'\x00f', '\017', SUCCEED, 'found', chr(15)), # (r'\x00fe', '\376', SUCCEED, 'found', chr(254)), (r"^\w+=(\\[\000-\277]|[^\n\\])*", "SRC=eval.c g.c blah blah blah \\\\\n\tapes.c", SUCCEED, 'found', "SRC=eval.c g.c blah blah blah \\\\"), # Test that . only matches \n in DOTALL mode ('a.b', 'acb', SUCCEED, 'found', 'acb'), ('a.b', 'a\nb', FAIL), ('a.*b', 'acc\nccb', FAIL), ('a.{4,5}b', 'acc\nccb', FAIL), ('a.b', 'a\rb', SUCCEED, 'found', 'a\rb'), ('(?s)a.b', 'a\nb', SUCCEED, 'found', 'a\nb'), ('(?s)a.*b', 'acc\nccb', SUCCEED, 'found', 'acc\nccb'), ('(?s)a.{4,5}b', 'acc\nccb', SUCCEED, 'found', 'acc\nccb'), ('(?s)a.b', 'a\rb', SUCCEED, 'found', 'a\rb'), (')', '', SYNTAX_ERROR), # Unmatched right bracket ('', '', SUCCEED, 'found', ''), # Empty pattern ('abc', 'abc', SUCCEED, 'found', 'abc'), ('abc', 'xbc', FAIL), ('abc', 'axc', FAIL), ('abc', 'abx', FAIL), ('abc', 'xabcy', SUCCEED, 'found', 'abc'), ('abc', 'ababc', SUCCEED, 'found', 'abc'), ('ab*c', 'abc', SUCCEED, 'found', 'abc'), ('ab*bc', 'abc', SUCCEED, 'found', 'abc'), ('ab*bc', 'abbc', SUCCEED, 'found', 'abbc'), ('ab*bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'), ('ab+bc', 'abbc', SUCCEED, 'found', 'abbc'), ('ab+bc', 'abc', FAIL), ('ab+bc', 'abq', FAIL), ('ab+bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'), ('ab?bc', 'abbc', SUCCEED, 'found', 'abbc'), ('ab?bc', 'abc', SUCCEED, 'found', 'abc'), ('ab?bc', 'abbbbc', FAIL), ('ab?c', 'abc', SUCCEED, 'found', 'abc'), ('^abc$', 'abc', SUCCEED, 'found', 'abc'), ('^abc$', 'abcc', FAIL), ('^abc', 'abcc', SUCCEED, 'found', 'abc'), ('^abc$', 'aabc', FAIL), ('abc$', 'aabc', SUCCEED, 'found', 'abc'), ('^', 'abc', SUCCEED, 'found+"-"', '-'), ('$', 'abc', SUCCEED, 'found+"-"', '-'), ('a.c', 'abc', SUCCEED, 'found', 'abc'), ('a.c', 'axc', SUCCEED, 'found', 'axc'), ('a.*c', 'axyzc', SUCCEED, 'found', 'axyzc'), ('a.*c', 'axyzd', FAIL), ('a[bc]d', 'abc', FAIL), ('a[bc]d', 'abd', SUCCEED, 'found', 'abd'), ('a[b-d]e', 'abd', FAIL), ('a[b-d]e', 'ace', SUCCEED, 'found', 'ace'), ('a[b-d]', 'aac', SUCCEED, 'found', 'ac'), ('a[-b]', 'a-', SUCCEED, 'found', 'a-'), ('a[\\-b]', 'a-', SUCCEED, 'found', 'a-'), # NOTE: not an error under PCRE/PRE: # ('a[b-]', 'a-', SYNTAX_ERROR), ('a[]b', '-', SYNTAX_ERROR), ('a[', '-', SYNTAX_ERROR), ('a\\', '-', SYNTAX_ERROR), ('abc)', '-', SYNTAX_ERROR), ('(abc', '-', SYNTAX_ERROR), ('a]', 'a]', SUCCEED, 'found', 'a]'), ('a[]]b', 'a]b', SUCCEED, 'found', 'a]b'), ('a[\\]]b', 'a]b', SUCCEED, 'found', 'a]b'), ('a[^bc]d', 'aed', SUCCEED, 'found', 'aed'), ('a[^bc]d', 'abd', FAIL), ('a[^-b]c', 'adc', SUCCEED, 'found', 'adc'), ('a[^-b]c', 'a-c', FAIL), ('a[^]b]c', 'a]c', FAIL), ('a[^]b]c', 'adc', SUCCEED, 'found', 'adc'), ('\\ba\\b', 'a-', SUCCEED, '"-"', '-'), ('\\ba\\b', '-a', SUCCEED, '"-"', '-'), ('\\ba\\b', '-a-', SUCCEED, '"-"', '-'), ('\\by\\b', 'xy', FAIL), ('\\by\\b', 'yz', FAIL), ('\\by\\b', 'xyz', FAIL), ('x\\b', 'xyz', FAIL), ('x\\B', 'xyz', SUCCEED, '"-"', '-'), ('\\Bz', 'xyz', SUCCEED, '"-"', '-'), ('z\\B', 'xyz', FAIL), ('\\Bx', 'xyz', FAIL), ('\\Ba\\B', 'a-', FAIL, '"-"', '-'), ('\\Ba\\B', '-a', FAIL, '"-"', '-'), ('\\Ba\\B', '-a-', FAIL, '"-"', '-'), ('\\By\\B', 'xy', FAIL), ('\\By\\B', 'yz', FAIL), ('\\By\\b', 'xy', SUCCEED, '"-"', '-'), ('\\by\\B', 'yz', SUCCEED, '"-"', '-'), ('\\By\\B', 'xyz', SUCCEED, '"-"', '-'), ('ab|cd', 'abc', SUCCEED, 'found', 'ab'), ('ab|cd', 'abcd', SUCCEED, 'found', 'ab'), ('()ef', 'def', SUCCEED, 'found+"-"+g1', 'ef-'), ('$b', 'b', FAIL), ('a\\(b', 'a(b', SUCCEED, 'found+"-"+g1', 'a(b-Error'), ('a\\(*b', 'ab', SUCCEED, 'found', 'ab'), ('a\\(*b', 'a((b', SUCCEED, 'found', 'a((b'), ('a\\\\b', 'a\\b', SUCCEED, 'found', 'a\\b'), ('((a))', 'abc', SUCCEED, 'found+"-"+g1+"-"+g2', 'a-a-a'), ('(a)b(c)', 'abc', SUCCEED, 'found+"-"+g1+"-"+g2', 'abc-a-c'), ('a+b+c', 'aabbabc', SUCCEED, 'found', 'abc'), ('(a+|b)*', 'ab', SUCCEED, 'found+"-"+g1', 'ab-b'), ('(a+|b)+', 'ab', SUCCEED, 'found+"-"+g1', 'ab-b'), ('(a+|b)?', 'ab', SUCCEED, 'found+"-"+g1', 'a-a'), (')(', '-', SYNTAX_ERROR), ('[^ab]*', 'cde', SUCCEED, 'found', 'cde'), ('abc', '', FAIL), ('a*', '', SUCCEED, 'found', ''), ('a|b|c|d|e', 'e', SUCCEED, 'found', 'e'), ('(a|b|c|d|e)f', 'ef', SUCCEED, 'found+"-"+g1', 'ef-e'), ('abcd*efg', 'abcdefg', SUCCEED, 'found', 'abcdefg'), ('ab*', 'xabyabbbz', SUCCEED, 'found', 'ab'), ('ab*', 'xayabbbz', SUCCEED, 'found', 'a'), ('(ab|cd)e', 'abcde', SUCCEED, 'found+"-"+g1', 'cde-cd'), ('[abhgefdc]ij', 'hij', SUCCEED, 'found', 'hij'), ('^(ab|cd)e', 'abcde', FAIL, 'xg1y', 'xy'), ('(abc|)ef', 'abcdef', SUCCEED, 'found+"-"+g1', 'ef-'), ('(a|b)c*d', 'abcd', SUCCEED, 'found+"-"+g1', 'bcd-b'), ('(ab|ab*)bc', 'abc', SUCCEED, 'found+"-"+g1', 'abc-a'), ('a([bc]*)c*', 'abc', SUCCEED, 'found+"-"+g1', 'abc-bc'), ('a([bc]*)(c*d)', 'abcd', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcd-bc-d'), ('a([bc]+)(c*d)', 'abcd', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcd-bc-d'), ('a([bc]*)(c+d)', 'abcd', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcd-b-cd'), ('a[bcd]*dcdcde', 'adcdcde', SUCCEED, 'found', 'adcdcde'), ('a[bcd]+dcdcde', 'adcdcde', FAIL), ('(ab|a)b*c', 'abc', SUCCEED, 'found+"-"+g1', 'abc-ab'), ('((a)(b)c)(d)', 'abcd', SUCCEED, 'g1+"-"+g2+"-"+g3+"-"+g4', 'abc-a-b-d'), ('[a-zA-Z_][a-zA-Z0-9_]*', 'alpha', SUCCEED, 'found', 'alpha'), ('^a(bc+|b[eh])g|.h$', 'abh', SUCCEED, 'found+"-"+g1', 'bh-None'), ('(bc+d$|ef*g.|h?i(j|k))', 'effgz', SUCCEED, 'found+"-"+g1+"-"+g2', 'effgz-effgz-None'), ('(bc+d$|ef*g.|h?i(j|k))', 'ij', SUCCEED, 'found+"-"+g1+"-"+g2', 'ij-ij-j'), ('(bc+d$|ef*g.|h?i(j|k))', 'effg', FAIL), ('(bc+d$|ef*g.|h?i(j|k))', 'bcdd', FAIL), ('(bc+d$|ef*g.|h?i(j|k))', 'reffgz', SUCCEED, 'found+"-"+g1+"-"+g2', 'effgz-effgz-None'), ('(((((((((a)))))))))', 'a', SUCCEED, 'found', 'a'), ('multiple words of text', 'uh-uh', FAIL), ('multiple words', 'multiple words, yeah', SUCCEED, 'found', 'multiple words'), ('(.*)c(.*)', 'abcde', SUCCEED, 'found+"-"+g1+"-"+g2', 'abcde-ab-de'), ('\\((.*), (.*)\\)', '(a, b)', SUCCEED, 'g2+"-"+g1', 'b-a'), ('[k]', 'ab', FAIL), ('a[-]?c', 'ac', SUCCEED, 'found', 'ac'), ('(abc)\\1', 'abcabc', SUCCEED, 'g1', 'abc'), ('([a-c]*)\\1', 'abcabc', SUCCEED, 'g1', 'abc'), ('^(.+)?B', 'AB', SUCCEED, 'g1', 'A'), ('(a+).\\1$', 'aaaaa', SUCCEED, 'found+"-"+g1', 'aaaaa-aa'), ('^(a+).\\1$', 'aaaa', FAIL), ('(abc)\\1', 'abcabc', SUCCEED, 'found+"-"+g1', 'abcabc-abc'), ('([a-c]+)\\1', 'abcabc', SUCCEED, 'found+"-"+g1', 'abcabc-abc'), ('(a)\\1', 'aa', SUCCEED, 'found+"-"+g1', 'aa-a'), ('(a+)\\1', 'aa', SUCCEED, 'found+"-"+g1', 'aa-a'), ('(a+)+\\1', 'aa', SUCCEED, 'found+"-"+g1', 'aa-a'), ('(a).+\\1', 'aba', SUCCEED, 'found+"-"+g1', 'aba-a'), ('(a)ba*\\1', 'aba', SUCCEED, 'found+"-"+g1', 'aba-a'), ('(aa|a)a\\1$', 'aaa', SUCCEED, 'found+"-"+g1', 'aaa-a'), ('(a|aa)a\\1$', 'aaa', SUCCEED, 'found+"-"+g1', 'aaa-a'), ('(a+)a\\1$', 'aaa', SUCCEED, 'found+"-"+g1', 'aaa-a'), ('([abc]*)\\1', 'abcabc', SUCCEED, 'found+"-"+g1', 'abcabc-abc'), ('(a)(b)c|ab', 'ab', SUCCEED, 'found+"-"+g1+"-"+g2', 'ab-None-None'), ('(a)+x', 'aaax', SUCCEED, 'found+"-"+g1', 'aaax-a'), ('([ac])+x', 'aacx', SUCCEED, 'found+"-"+g1', 'aacx-c'), ('([^/]*/)*sub1/', 'd:msgs/tdir/sub1/trial/away.cpp', SUCCEED, 'found+"-"+g1', 'd:msgs/tdir/sub1/-tdir/'), ('([^.]*)\\.([^:]*):[T ]+(.*)', 'track1.title:TBlah blah blah', SUCCEED, 'found+"-"+g1+"-"+g2+"-"+g3', 'track1.title:TBlah blah blah-track1-title-Blah blah blah'), ('([^N]*N)+', 'abNNxyzN', SUCCEED, 'found+"-"+g1', 'abNNxyzN-xyzN'), ('([^N]*N)+', 'abNNxyz', SUCCEED, 'found+"-"+g1', 'abNN-N'), ('([abc]*)x', 'abcx', SUCCEED, 'found+"-"+g1', 'abcx-abc'), ('([abc]*)x', 'abc', FAIL), ('([xyz]*)x', 'abcx', SUCCEED, 'found+"-"+g1', 'x-'), ('(a)+b|aac', 'aac', SUCCEED, 'found+"-"+g1', 'aac-None'), # Test symbolic groups ('(?P<i d>aaa)a', 'aaaa', SYNTAX_ERROR), ('(?P<id>aaa)a', 'aaaa', SUCCEED, 'found+"-"+id', 'aaaa-aaa'), ('(?P<id>aa)(?P=id)', 'aaaa', SUCCEED, 'found+"-"+id', 'aaaa-aa'), ('(?P<id>aa)(?P=xd)', 'aaaa', SYNTAX_ERROR), # Test octal escapes/memory references ('\\1', 'a', SYNTAX_ERROR), # All tests from Perl ('ab{0,}bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'), ('ab{1,}bc', 'abq', FAIL), ('ab{1,}bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'), ('ab{1,3}bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'), ('ab{3,4}bc', 'abbbbc', SUCCEED, 'found', 'abbbbc'), ('ab{4,5}bc', 'abbbbc', FAIL), ('ab{0,1}bc', 'abc', SUCCEED, 'found', 'abc'), ('ab{0,1}c', 'abc', SUCCEED, 'found', 'abc'), ('^', 'abc', SUCCEED, 'found', ''), ('$', 'abc', SUCCEED, 'found', ''), ('a[b-]', 'a-', SUCCEED, 'found', 'a-'), ('a[b-a]', '-', SYNTAX_ERROR), ('*a', '-', SYNTAX_ERROR), ('(*)b', '-', SYNTAX_ERROR), ('a{1,}b{1,}c', 'aabbabc', SUCCEED, 'found', 'abc'), ('a**', '-', SYNTAX_ERROR), ('a.+?c', 'abcabc', SUCCEED, 'found', 'abc'), ('(a+|b){0,}', 'ab', SUCCEED, 'found+"-"+g1', 'ab-b'), ('(a+|b){1,}', 'ab', SUCCEED, 'found+"-"+g1', 'ab-b'), ('(a+|b){0,1}', 'ab', SUCCEED, 'found+"-"+g1', 'a-a'), ('([abc])*d', 'abbbcd', SUCCEED, 'found+"-"+g1', 'abbbcd-c'), ('([abc])*bcd', 'abcd', SUCCEED, 'found+"-"+g1', 'abcd-a'), ('^(ab|cd)e', 'abcde', FAIL), ('((((((((((a))))))))))', 'a', SUCCEED, 'g10', 'a'), ('((((((((((a))))))))))\\10', 'aa', SUCCEED, 'found', 'aa'), # Python does not have the same rules for \\41 so this is a syntax error # ('((((((((((a))))))))))\\41', 'aa', FAIL), # ('((((((((((a))))))))))\\41', 'a!', SUCCEED, 'found', 'a!'), ('((((((((((a))))))))))\\41', '', SYNTAX_ERROR), ('(?i)((((((((((a))))))))))\\41', '', SYNTAX_ERROR), ('(?i)abc', 'ABC', SUCCEED, 'found', 'ABC'), ('(?i)abc', 'XBC', FAIL), ('(?i)abc', 'AXC', FAIL), ('(?i)abc', 'ABX', FAIL), ('(?i)abc', 'XABCY', SUCCEED, 'found', 'ABC'), ('(?i)abc', 'ABABC', SUCCEED, 'found', 'ABC'), ('(?i)ab*c', 'ABC', SUCCEED, 'found', 'ABC'), ('(?i)ab*bc', 'ABC', SUCCEED, 'found', 'ABC'), ('(?i)ab*bc', 'ABBC', SUCCEED, 'found', 'ABBC'), ('(?i)ab*?bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'), ('(?i)ab{0,}?bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'), ('(?i)ab+?bc', 'ABBC', SUCCEED, 'found', 'ABBC'), ('(?i)ab+bc', 'ABC', FAIL), ('(?i)ab+bc', 'ABQ', FAIL), ('(?i)ab{1,}bc', 'ABQ', FAIL), ('(?i)ab+bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'), ('(?i)ab{1,}?bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'), ('(?i)ab{1,3}?bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'), ('(?i)ab{3,4}?bc', 'ABBBBC', SUCCEED, 'found', 'ABBBBC'), ('(?i)ab{4,5}?bc', 'ABBBBC', FAIL), ('(?i)ab??bc', 'ABBC', SUCCEED, 'found', 'ABBC'), ('(?i)ab??bc', 'ABC', SUCCEED, 'found', 'ABC'), ('(?i)ab{0,1}?bc', 'ABC', SUCCEED, 'found', 'ABC'), ('(?i)ab??bc', 'ABBBBC', FAIL), ('(?i)ab??c', 'ABC', SUCCEED, 'found', 'ABC'), ('(?i)ab{0,1}?c', 'ABC', SUCCEED, 'found', 'ABC'), ('(?i)^abc$', 'ABC', SUCCEED, 'found', 'ABC'), ('(?i)^abc$', 'ABCC', FAIL), ('(?i)^abc', 'ABCC', SUCCEED, 'found', 'ABC'), ('(?i)^abc$', 'AABC', FAIL), ('(?i)abc$', 'AABC', SUCCEED, 'found', 'ABC'), ('(?i)^', 'ABC', SUCCEED, 'found', ''), ('(?i)$', 'ABC', SUCCEED, 'found', ''), ('(?i)a.c', 'ABC', SUCCEED, 'found', 'ABC'), ('(?i)a.c', 'AXC', SUCCEED, 'found', 'AXC'), ('(?i)a.*?c', 'AXYZC', SUCCEED, 'found', 'AXYZC'), ('(?i)a.*c', 'AXYZD', FAIL), ('(?i)a[bc]d', 'ABC', FAIL), ('(?i)a[bc]d', 'ABD', SUCCEED, 'found', 'ABD'), ('(?i)a[b-d]e', 'ABD', FAIL), ('(?i)a[b-d]e', 'ACE', SUCCEED, 'found', 'ACE'), ('(?i)a[b-d]', 'AAC', SUCCEED, 'found', 'AC'), ('(?i)a[-b]', 'A-', SUCCEED, 'found', 'A-'), ('(?i)a[b-]', 'A-', SUCCEED, 'found', 'A-'), ('(?i)a[b-a]', '-', SYNTAX_ERROR), ('(?i)a[]b', '-', SYNTAX_ERROR), ('(?i)a[', '-', SYNTAX_ERROR), ('(?i)a]', 'A]', SUCCEED, 'found', 'A]'), ('(?i)a[]]b', 'A]B', SUCCEED, 'found', 'A]B'), ('(?i)a[^bc]d', 'AED', SUCCEED, 'found', 'AED'), ('(?i)a[^bc]d', 'ABD', FAIL), ('(?i)a[^-b]c', 'ADC', SUCCEED, 'found', 'ADC'), ('(?i)a[^-b]c', 'A-C', FAIL), ('(?i)a[^]b]c', 'A]C', FAIL), ('(?i)a[^]b]c', 'ADC', SUCCEED, 'found', 'ADC'), ('(?i)ab|cd', 'ABC', SUCCEED, 'found', 'AB'), ('(?i)ab|cd', 'ABCD', SUCCEED, 'found', 'AB'), ('(?i)()ef', 'DEF', SUCCEED, 'found+"-"+g1', 'EF-'), ('(?i)*a', '-', SYNTAX_ERROR), ('(?i)(*)b', '-', SYNTAX_ERROR), ('(?i)$b', 'B', FAIL), ('(?i)a\\', '-', SYNTAX_ERROR), ('(?i)a\\(b', 'A(B', SUCCEED, 'found+"-"+g1', 'A(B-Error'), ('(?i)a\\(*b', 'AB', SUCCEED, 'found', 'AB'), ('(?i)a\\(*b', 'A((B', SUCCEED, 'found', 'A((B'), ('(?i)a\\\\b', 'A\\B', SUCCEED, 'found', 'A\\B'), ('(?i)abc)', '-', SYNTAX_ERROR), ('(?i)(abc', '-', SYNTAX_ERROR), ('(?i)((a))', 'ABC', SUCCEED, 'found+"-"+g1+"-"+g2', 'A-A-A'), ('(?i)(a)b(c)', 'ABC', SUCCEED, 'found+"-"+g1+"-"+g2', 'ABC-A-C'), ('(?i)a+b+c', 'AABBABC', SUCCEED, 'found', 'ABC'), ('(?i)a{1,}b{1,}c', 'AABBABC', SUCCEED, 'found', 'ABC'), ('(?i)a**', '-', SYNTAX_ERROR), ('(?i)a.+?c', 'ABCABC', SUCCEED, 'found', 'ABC'), ('(?i)a.*?c', 'ABCABC', SUCCEED, 'found', 'ABC'), ('(?i)a.{0,5}?c', 'ABCABC', SUCCEED, 'found', 'ABC'), ('(?i)(a+|b)*', 'AB', SUCCEED, 'found+"-"+g1', 'AB-B'), ('(?i)(a+|b){0,}', 'AB', SUCCEED, 'found+"-"+g1', 'AB-B'), ('(?i)(a+|b)+', 'AB', SUCCEED, 'found+"-"+g1', 'AB-B'), ('(?i)(a+|b){1,}', 'AB', SUCCEED, 'found+"-"+g1', 'AB-B'), ('(?i)(a+|b)?', 'AB', SUCCEED, 'found+"-"+g1', 'A-A'), ('(?i)(a+|b){0,1}', 'AB', SUCCEED, 'found+"-"+g1', 'A-A'), ('(?i)(a+|b){0,1}?', 'AB', SUCCEED, 'found+"-"+g1', '-None'), ('(?i))(', '-', SYNTAX_ERROR), ('(?i)[^ab]*', 'CDE', SUCCEED, 'found', 'CDE'), ('(?i)abc', '', FAIL), ('(?i)a*', '', SUCCEED, 'found', ''), ('(?i)([abc])*d', 'ABBBCD', SUCCEED, 'found+"-"+g1', 'ABBBCD-C'), ('(?i)([abc])*bcd', 'ABCD', SUCCEED, 'found+"-"+g1', 'ABCD-A'), ('(?i)a|b|c|d|e', 'E', SUCCEED, 'found', 'E'), ('(?i)(a|b|c|d|e)f', 'EF', SUCCEED, 'found+"-"+g1', 'EF-E'), ('(?i)abcd*efg', 'ABCDEFG', SUCCEED, 'found', 'ABCDEFG'), ('(?i)ab*', 'XABYABBBZ', SUCCEED, 'found', 'AB'), ('(?i)ab*', 'XAYABBBZ', SUCCEED, 'found', 'A'), ('(?i)(ab|cd)e', 'ABCDE', SUCCEED, 'found+"-"+g1', 'CDE-CD'), ('(?i)[abhgefdc]ij', 'HIJ', SUCCEED, 'found', 'HIJ'), ('(?i)^(ab|cd)e', 'ABCDE', FAIL), ('(?i)(abc|)ef', 'ABCDEF', SUCCEED, 'found+"-"+g1', 'EF-'), ('(?i)(a|b)c*d', 'ABCD', SUCCEED, 'found+"-"+g1', 'BCD-B'), ('(?i)(ab|ab*)bc', 'ABC', SUCCEED, 'found+"-"+g1', 'ABC-A'), ('(?i)a([bc]*)c*', 'ABC', SUCCEED, 'found+"-"+g1', 'ABC-BC'), ('(?i)a([bc]*)(c*d)', 'ABCD', SUCCEED, 'found+"-"+g1+"-"+g2', 'ABCD-BC-D'), ('(?i)a([bc]+)(c*d)', 'ABCD', SUCCEED, 'found+"-"+g1+"-"+g2', 'ABCD-BC-D'), ('(?i)a([bc]*)(c+d)', 'ABCD', SUCCEED, 'found+"-"+g1+"-"+g2', 'ABCD-B-CD'), ('(?i)a[bcd]*dcdcde', 'ADCDCDE', SUCCEED, 'found', 'ADCDCDE'), ('(?i)a[bcd]+dcdcde', 'ADCDCDE', FAIL), ('(?i)(ab|a)b*c', 'ABC', SUCCEED, 'found+"-"+g1', 'ABC-AB'), ('(?i)((a)(b)c)(d)', 'ABCD', SUCCEED, 'g1+"-"+g2+"-"+g3+"-"+g4', 'ABC-A-B-D'), ('(?i)[a-zA-Z_][a-zA-Z0-9_]*', 'ALPHA', SUCCEED, 'found', 'ALPHA'), ('(?i)^a(bc+|b[eh])g|.h$', 'ABH', SUCCEED, 'found+"-"+g1', 'BH-None'), ('(?i)(bc+d$|ef*g.|h?i(j|k))', 'EFFGZ', SUCCEED, 'found+"-"+g1+"-"+g2', 'EFFGZ-EFFGZ-None'), ('(?i)(bc+d$|ef*g.|h?i(j|k))', 'IJ', SUCCEED, 'found+"-"+g1+"-"+g2', 'IJ-IJ-J'), ('(?i)(bc+d$|ef*g.|h?i(j|k))', 'EFFG', FAIL), ('(?i)(bc+d$|ef*g.|h?i(j|k))', 'BCDD', FAIL), ('(?i)(bc+d$|ef*g.|h?i(j|k))', 'REFFGZ', SUCCEED, 'found+"-"+g1+"-"+g2', 'EFFGZ-EFFGZ-None'), ('(?i)((((((((((a))))))))))', 'A', SUCCEED, 'g10', 'A'), ('(?i)((((((((((a))))))))))\\10', 'AA', SUCCEED, 'found', 'AA'), #('(?i)((((((((((a))))))))))\\41', 'AA', FAIL), #('(?i)((((((((((a))))))))))\\41', 'A!', SUCCEED, 'found', 'A!'), ('(?i)(((((((((a)))))))))', 'A', SUCCEED, 'found', 'A'), ('(?i)(?:(?:(?:(?:(?:(?:(?:(?:(?:(a))))))))))', 'A', SUCCEED, 'g1', 'A'), ('(?i)(?:(?:(?:(?:(?:(?:(?:(?:(?:(a|b|c))))))))))', 'C', SUCCEED, 'g1', 'C'), ('(?i)multiple words of text', 'UH-UH', FAIL), ('(?i)multiple words', 'MULTIPLE WORDS, YEAH', SUCCEED, 'found', 'MULTIPLE WORDS'), ('(?i)(.*)c(.*)', 'ABCDE', SUCCEED, 'found+"-"+g1+"-"+g2', 'ABCDE-AB-DE'), ('(?i)\\((.*), (.*)\\)', '(A, B)', SUCCEED, 'g2+"-"+g1', 'B-A'), ('(?i)[k]', 'AB', FAIL), # ('(?i)abcd', 'ABCD', SUCCEED, 'found+"-"+\\found+"-"+\\\\found', 'ABCD-$&-\\ABCD'), # ('(?i)a(bc)d', 'ABCD', SUCCEED, 'g1+"-"+\\g1+"-"+\\\\g1', 'BC-$1-\\BC'), ('(?i)a[-]?c', 'AC', SUCCEED, 'found', 'AC'), ('(?i)(abc)\\1', 'ABCABC', SUCCEED, 'g1', 'ABC'), ('(?i)([a-c]*)\\1', 'ABCABC', SUCCEED, 'g1', 'ABC'), ('a(?!b).', 'abad', SUCCEED, 'found', 'ad'), ('a(?=d).', 'abad', SUCCEED, 'found', 'ad'), ('a(?=c|d).', 'abad', SUCCEED, 'found', 'ad'), ('a(?:b|c|d)(.)', 'ace', SUCCEED, 'g1', 'e'), ('a(?:b|c|d)*(.)', 'ace', SUCCEED, 'g1', 'e'), ('a(?:b|c|d)+?(.)', 'ace', SUCCEED, 'g1', 'e'), ('a(?:b|(c|e){1,2}?|d)+?(.)', 'ace', SUCCEED, 'g1 + g2', 'ce'), # lookbehind: split by : but not if it is escaped by -. ('(?<!-):(.*?)(?<!-):', 'a:bc-:de:f', SUCCEED, 'g1', 'bc-:de' ), # escaping with \ as we know it ('(?<!\\\\):(.*?)(?<!\\\\):', 'a:bc\\:de:f', SUCCEED, 'g1', 'bc\\:de' ), # terminating with ' and escaping with ? as in edifact ("(?<!\\?)'(.*?)(?<!\\?)'", "a'bc?'de'f", SUCCEED, 'g1', "bc?'de" ), # Comments using the (?#...) syntax ('w(?# comment', 'w', SYNTAX_ERROR), ('w(?# comment 1)xy(?# comment 2)z', 'wxyz', SUCCEED, 'found', 'wxyz'), # Check odd placement of embedded pattern modifiers # not an error under PCRE/PRE: ('(?i)w', 'W', SUCCEED, 'found', 'W'), # ('w(?i)', 'W', SYNTAX_ERROR), # Comments using the x embedded pattern modifier ("""(?x)w# comment 1 x y # comment 2 z""", 'wxyz', SUCCEED, 'found', 'wxyz'), # using the m embedded pattern modifier ('^abc', """jkl abc xyz""", FAIL), ('(?m)^abc', """jkl abc xyz""", SUCCEED, 'found', 'abc'), ('(?m)abc$', """jkl xyzabc 123""", SUCCEED, 'found', 'abc'), # test \w, etc. both inside and outside character classes ('\\w+', '--ab_cd0123--', SUCCEED, 'found', 'ab_cd0123'), ('[\\w]+', '--ab_cd0123--', SUCCEED, 'found', 'ab_cd0123'), ('\\D+', '1234abc5678', SUCCEED, 'found', 'abc'), ('[\\D]+', '1234abc5678', SUCCEED, 'found', 'abc'), ('[\\da-fA-F]+', '123abc', SUCCEED, 'found', '123abc'), # not an error under PCRE/PRE: # ('[\\d-x]', '-', SYNTAX_ERROR), (r'([\s]*)([\S]*)([\s]*)', ' testing!1972', SUCCEED, 'g3+g2+g1', 'testing!1972 '), (r'(\s*)(\S*)(\s*)', ' testing!1972', SUCCEED, 'g3+g2+g1', 'testing!1972 '), (r'\xff', '\377', SUCCEED, 'found', chr(255)), # new \x semantics (r'\x00ff', '\377', FAIL), # (r'\x00ff', '\377', SUCCEED, 'found', chr(255)), (r'\t\n\v\r\f\a', '\t\n\v\r\f\a', SUCCEED, 'found', '\t\n\v\r\f\a'), ('\t\n\v\r\f\a', '\t\n\v\r\f\a', SUCCEED, 'found', '\t\n\v\r\f\a'), (r'\t\n\v\r\f\a', '\t\n\v\r\f\a', SUCCEED, 'found', chr(9)+chr(10)+chr(11)+chr(13)+chr(12)+chr(7)), (r'[\t][\n][\v][\r][\f][\b]', '\t\n\v\r\f\b', SUCCEED, 'found', '\t\n\v\r\f\b'), # # post-1.5.2 additions # xmllib problem (r'(([a-z]+):)?([a-z]+)$', 'smil', SUCCEED, 'g1+"-"+g2+"-"+g3', 'None-None-smil'), # bug 110866: reference to undefined group (r'((.)\1+)', '', SYNTAX_ERROR), # bug 111869: search (PRE/PCRE fails on this one, SRE doesn't) (r'.*d', 'abc\nabd', SUCCEED, 'found', 'abd'), # bug 112468: various expected syntax errors (r'(', '', SYNTAX_ERROR), (r'[\41]', '!', SUCCEED, 'found', '!'), # bug 114033: nothing to repeat (r'(x?)?', 'x', SUCCEED, 'found', 'x'), # bug 115040: rescan if flags are modified inside pattern (r'(?x) foo ', 'foo', SUCCEED, 'found', 'foo'), # bug 115618: negative lookahead (r'(?<!abc)(d.f)', 'abcdefdof', SUCCEED, 'found', 'dof'), # bug 116251: character class bug (r'[\w-]+', 'laser_beam', SUCCEED, 'found', 'laser_beam'), # bug 123769+127259: non-greedy backtracking bug (r'.*?\S *:', 'xx:', SUCCEED, 'found', 'xx:'), (r'a[ ]*?\ (\d+).*', 'a 10', SUCCEED, 'found', 'a 10'), (r'a[ ]*?\ (\d+).*', 'a 10', SUCCEED, 'found', 'a 10'), # bug 127259: \Z shouldn't depend on multiline mode (r'(?ms).*?x\s*\Z(.*)','xx\nx\n', SUCCEED, 'g1', ''), # bug 128899: uppercase literals under the ignorecase flag (r'(?i)M+', 'MMM', SUCCEED, 'found', 'MMM'), (r'(?i)m+', 'MMM', SUCCEED, 'found', 'MMM'), (r'(?i)[M]+', 'MMM', SUCCEED, 'found', 'MMM'), (r'(?i)[m]+', 'MMM', SUCCEED, 'found', 'MMM'), # bug 130748: ^* should be an error (nothing to repeat) (r'^*', '', SYNTAX_ERROR), # bug 133283: minimizing repeat problem (r'"(?:\\"|[^"])*?"', r'"\""', SUCCEED, 'found', r'"\""'), # bug 477728: minimizing repeat problem (r'^.*?$', 'one\ntwo\nthree\n', FAIL), # bug 483789: minimizing repeat problem (r'a[^>]*?b', 'a>b', FAIL), # bug 490573: minimizing repeat problem (r'^a*?$', 'foo', FAIL), # bug 470582: nested groups problem (r'^((a)c)?(ab)$', 'ab', SUCCEED, 'g1+"-"+g2+"-"+g3', 'None-None-ab'), # another minimizing repeat problem (capturing groups in assertions) ('^([ab]*?)(?=(b)?)c', 'abc', SUCCEED, 'g1+"-"+g2', 'ab-None'), ('^([ab]*?)(?!(b))c', 'abc', SUCCEED, 'g1+"-"+g2', 'ab-None'), ('^([ab]*?)(?<!(a))c', 'abc', SUCCEED, 'g1+"-"+g2', 'ab-None'), ] u = '\N{LATIN CAPITAL LETTER A WITH DIAERESIS}' tests.extend([ # bug 410271: \b broken under locales (r'\b.\b', 'a', SUCCEED, 'found', 'a'), (r'(?u)\b.\b', u, SUCCEED, 'found', u), (r'(?u)\w', u, SUCCEED, 'found', u), ])
Upload File
Create Folder