cpython/Lib/test
R. David Murray b579dba119 #1486713: Add a tolerant mode to HTMLParser.
The motivation for adding this option is that the the functionality it
provides used to be provided by sgmllib in Python2, and was used by,
for example, BeautifulSoup.  Without this option, the Python3 version
of BeautifulSoup and the many programs that use it are crippled.

The original patch was by 'kxroberto'.  I modified it heavily but kept his
heuristics and test.  I also added additional heuristics to fix #975556,
#1046092, and part of #6191.  This patch should be completely backward
compatible:  the behavior with the default strict=True is unchanged.
2010-12-03 04:06:39 +00:00
..
capath
crashers
data
decimaltestdata
encoded_modules
json_tests Issue #10572: Moved json tests to Lib/test/json_tests. 2010-11-30 03:03:30 +00:00
leakers
sndhdrdata
tracedmodules
xmltestdata
185test.db
__init__.py
audiotest.au
autotest.py
bad_coding.py
bad_coding2.py
badcert.pem
badkey.pem
badsyntax_3131.py
badsyntax_future3.py
badsyntax_future4.py
badsyntax_future5.py
badsyntax_future6.py
badsyntax_future7.py
badsyntax_future8.py
badsyntax_future9.py
badsyntax_pep3120.py
buffer_tests.py
cfgparser.1
cfgparser.2
cfgparser.3
check_soundcard.vbs
cjkencodings_test.py
cmath_testcases.txt
curses_tests.py
datetimetester.py
dis_module.py
doctest_aliases.py
double_const.py
empty.vbs
exception_hierarchy.txt
floating_points.txt
fork_wait.py
formatfloat_testcases.txt
gdb_sample.py
https_svn_python_org_root.pem
ieee754.txt
inspect_fodder.py
inspect_fodder2.py
keycert.pem
keycert2.pem
list_tests.py
lock_tests.py
make_ssl_certs.py
mapping_tests.py
math_testcases.txt
mock_socket.py
nullcert.pem
outstanding_bugs.py
pickletester.py
profilee.py
pstats.pck
pyclbr_input.py
pydoc_mod.py
pydocfodder.py
pystone.py
randv2_32.pck
randv2_64.pck
randv3.pck
re_tests.py
regex_tests.py
regrtest.py
relimport.py
reperf.py
sample_doctest.py
script_helper.py
seq_tests.py
sgml_input.html
sha256.pem
Sine-1000Hz-300ms.aif
sortperf.py
ssl_cert.pem
ssl_key.pem
ssl_servers.py
string_tests.py
support.py Fix #9333. Expose os.symlink on Windows only when usable. 2010-12-02 18:29:18 +00:00
svn_python_org_https_cert.pem
symlink_support.py
test___all__.py
test___future__.py
test__locale.py
test_abc.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_abstract_numbers.py
test_aifc.py
test_argparse.py
test_array.py
test_ast.py
test_asynchat.py
test_asyncore.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_atexit.py
test_audioop.py
test_augassign.py
test_base64.py
test_bigaddrspace.py
test_bigmem.py
test_binascii.py
test_binhex.py
test_binop.py
test_bisect.py
test_bool.py Issue #10518: Bring back the callable() builtin. 2010-11-27 22:00:11 +00:00
test_bufio.py
test_builtin.py Issue #10518: Bring back the callable() builtin. 2010-11-27 22:00:11 +00:00
test_bytes.py #7475: add (un)transform method to bytes/bytearray and str, add back codecs that can be used with them from Python 2. 2010-12-02 18:06:51 +00:00
test_bz2.py
test_calendar.py
test_call.py
test_capi.py
test_cfgparser.py Use assertCountEqual instead of assertItemsEqual 2010-11-29 02:02:10 +00:00
test_cgi.py Use assertCountEqual instead of assertItemsEqual 2010-11-29 02:02:10 +00:00
test_charmapcodec.py
test_class.py
test_cmath.py
test_cmd.py
test_cmd_line.py
test_cmd_line_script.py
test_code.py
test_codeccallbacks.py
test_codecencodings_cn.py
test_codecencodings_hk.py
test_codecencodings_jp.py
test_codecencodings_kr.py
test_codecencodings_tw.py
test_codecmaps_cn.py
test_codecmaps_hk.py
test_codecmaps_jp.py
test_codecmaps_kr.py
test_codecmaps_tw.py
test_codecs.py #7475: add (un)transform method to bytes/bytearray and str, add back codecs that can be used with them from Python 2. 2010-12-02 18:06:51 +00:00
test_codeop.py
test_coding.py
test_collections.py Issue #10565: Iterator ABC should require both __next__ and __iter__. 2010-11-29 03:56:12 +00:00
test_colorsys.py
test_compare.py
test_compile.py
test_compileall.py #10453 follow-up: Fix test_quiet on Windows, thanks to Stephan Krah. 2010-11-26 00:39:59 +00:00
test_complex.py Issue #7094: Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon. 2010-11-25 16:08:06 +00:00
test_concurrent_futures.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_contains.py
test_contextlib.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_copy.py
test_copyreg.py
test_cprofile.py
test_crypt.py
test_csv.py Fix wrong test code in test_csv (#10602) 2010-12-02 22:16:19 +00:00
test_ctypes.py
test_curses.py
test_datetime.py
test_dbm.py
test_dbm_dumb.py
test_dbm_gnu.py
test_dbm_ndbm.py
test_decimal.py Issue #7094: Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon. 2010-11-25 16:08:06 +00:00
test_decorators.py
test_defaultdict.py
test_deque.py
test_descr.py
test_descrtut.py
test_dict.py
test_dictcomps.py
test_dictviews.py
test_difflib.py Issue 2986: Add autojunk paramater to SequenceMatcher to turn off heuristic. Patch by Terry Reedy, Eli Bendersky, and Simon Cross 2010-11-25 06:12:34 +00:00
test_difflib_expect.html
test_dis.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_distutils.py
test_doctest.py
test_doctest.txt
test_doctest2.py
test_doctest2.txt
test_doctest3.txt
test_doctest4.txt
test_docxmlrpc.py
test_dummy_thread.py
test_dummy_threading.py
test_dynamic.py
test_email.py
test_enumerate.py
test_eof.py
test_epoll.py
test_errno.py
test_exception_variations.py
test_exceptions.py
test_extcall.py
test_fcntl.py
test_file.py
test_filecmp.py
test_fileinput.py
test_fileio.py
test_float.py Issue #7094: Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon. 2010-11-25 16:08:06 +00:00
test_flufl.py
test_fnmatch.py
test_fork1.py Issue #9573: os.fork now works when triggered as a side effect of import (the wisdom of actually relying on this remains questionable!) 2010-12-02 04:11:46 +00:00
test_format.py
test_fractions.py
test_frozen.py
test_ftplib.py
test_funcattrs.py
test_functools.py Issue #4113: Added custom __repr__ method to functools.partial. 2010-12-01 20:05:49 +00:00
test_future.py
test_future1.py
test_future2.py
test_future3.py
test_future4.py
test_future5.py
test_gc.py
test_gdb.py
test_generators.py
test_genericpath.py
test_genexps.py
test_getargs2.py
test_getopt.py
test_gettext.py
test_glob.py Fix #9333. Expose os.symlink on Windows only when usable. 2010-12-02 18:29:18 +00:00
test_global.py
test_grammar.py
test_grp.py
test_gzip.py
test_hash.py
test_hashlib.py
test_heapq.py
test_hmac.py
test_html.py
test_htmlparser.py #1486713: Add a tolerant mode to HTMLParser. 2010-12-03 04:06:39 +00:00
test_http_cookiejar.py
test_http_cookies.py
test_httplib.py
test_httpservers.py Fix #9333. Expose os.symlink on Windows only when usable. 2010-12-02 18:29:18 +00:00
test_imaplib.py
test_imp.py
test_import.py
test_importhooks.py
test_importlib.py
test_index.py
test_inspect.py Issue4335: Added a test for inspect.getsourcelines with a module without EOL at EOF. 2010-12-02 00:10:11 +00:00
test_int.py
test_int_literal.py
test_io.py
test_ioctl.py
test_isinstance.py
test_iter.py
test_iterlen.py
test_itertools.py Update the itertools.accumulate() docs. 2010-12-03 02:33:53 +00:00
test_json.py Issue #10572: Moved json tests to Lib/test/json_tests. 2010-11-30 03:03:30 +00:00
test_keywordonlyarg.py
test_kqueue.py
test_largefile.py
test_lib2to3.py
test_linecache.py
test_list.py
test_listcomps.py
test_locale.py
test_logging.py
test_long.py
test_longexp.py
test_macpath.py
test_mailbox.py
test_marshal.py
test_math.py
test_memoryio.py
test_memoryview.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_metaclass.py
test_mimetypes.py
test_minidom.py
test_mmap.py
test_module.py
test_modulefinder.py
test_multibytecodec.py
test_multibytecodec_support.py
test_multiprocessing.py Fix test_multiprocessing when ctypes isn't available 2010-11-22 16:26:21 +00:00
test_mutants.py
test_netrc.py #10464: fix netrc handling of lines with embedded '#" characters. 2010-12-02 02:58:07 +00:00
test_nis.py
test_nntplib.py Make test_nntplib more robust 2010-11-21 17:14:19 +00:00
test_normalization.py
test_ntpath.py
test_numeric_tower.py
test_opcodes.py
test_openpty.py
test_operator.py
test_optparse.py
test_os.py Fix #9333. Expose os.symlink on Windows only when usable. 2010-12-02 18:29:18 +00:00
test_ossaudiodev.py
test_osx_env.py
test_parser.py
test_pdb.py Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number. 2010-11-29 11:54:17 +00:00
test_peepholer.py
test_pep247.py
test_pep263.py
test_pep277.py
test_pep292.py
test_pep352.py
test_pep3120.py
test_pep3131.py
test_pickle.py
test_pickletools.py
test_pipes.py
test_pkg.py
test_pkgimport.py
test_pkgutil.py
test_platform.py Fix #9333. Expose os.symlink on Windows only when usable. 2010-12-02 18:29:18 +00:00
test_plistlib.py
test_poll.py
test_popen.py
test_poplib.py
test_posix.py
test_posixpath.py Fix #9333. Expose os.symlink on Windows only when usable. 2010-12-02 18:29:18 +00:00
test_pow.py
test_pprint.py
test_print.py
test_profile.py
test_property.py
test_pstats.py
test_pty.py
test_pwd.py
test_pyclbr.py
test_pydoc.py
test_pyexpat.py
test_queue.py
test_quopri.py
test_raise.py
test_random.py
test_range.py
test_re.py
test_readline.py
test_reprlib.py
test_resource.py
test_richcmp.py
test_rlcompleter.py
test_robotparser.py
test_runpy.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_sax.py
test_sched.py
test_scope.py
test_select.py
test_set.py
test_setcomps.py
test_shelve.py
test_shlex.py
test_shutil.py Fix #9333. Expose os.symlink on Windows only when usable. 2010-12-02 18:29:18 +00:00
test_signal.py
test_site.py
test_slice.py
test_smtpd.py
test_smtplib.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_smtpnet.py
test_sndhdr.py
test_socket.py
test_socketserver.py
test_sort.py
test_sqlite.py
test_ssl.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_startfile.py
test_strftime.py
test_string.py
test_stringprep.py
test_strlit.py
test_strptime.py
test_strtod.py
test_struct.py
test_structmembers.py
test_structseq.py
test_subprocess.py Fix #10554. Added context manager support to Popen objects. 2010-12-03 02:46:02 +00:00
test_sunau.py
test_sundry.py
test_super.py
test_symtable.py
test_syntax.py
test_sys.py
test_sys_setprofile.py
test_sys_settrace.py
test_sysconfig.py Fix #9333. Expose os.symlink on Windows only when usable. 2010-12-02 18:29:18 +00:00
test_syslog.py
test_tarfile.py Fix #9333. Expose os.symlink on Windows only when usable. 2010-12-02 18:29:18 +00:00
test_tcl.py
test_telnetlib.py
test_tempfile.py
test_textwrap.py
test_thread.py
test_threaded_import.py
test_threadedtempfile.py
test_threading.py
test_threading_local.py
test_threadsignals.py
test_time.py
test_timeout.py
test_tk.py
test_tokenize.py
test_trace.py Fixed deprecation warnings. 2010-11-26 18:51:39 +00:00
test_traceback.py
test_ttk_guionly.py
test_ttk_textonly.py
test_tuple.py
test_typechecks.py
test_types.py Issue #7094: Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon. 2010-11-25 16:08:06 +00:00
test_ucn.py Issue #10459: Update CJK character names to Unicode 6.0. 2010-11-22 09:00:02 +00:00
test_unary.py
test_unicode.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_unicode_file.py
test_unicodedata.py
test_unittest.py
test_univnewlines.py
test_unpack.py
test_unpack_ex.py
test_urllib.py
test_urllib2.py Fix Issue4493 - urllib2 adds '/' to the path component of url, when it does not 2010-11-22 04:48:26 +00:00
test_urllib2_localnet.py
test_urllib2net.py
test_urllib_response.py
test_urllibnet.py
test_urlparse.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_userdict.py
test_userlist.py
test_userstring.py
test_uu.py
test_uuid.py
test_wait3.py
test_wait4.py
test_warnings.py
test_wave.py
test_weakref.py
test_weakset.py
test_winreg.py
test_winsound.py
test_with.py
test_wsgiref.py
test_xdrlib.py
test_xml_etree.py
test_xml_etree_c.py
test_xmlrpc.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
test_xmlrpc_net.py
test_zipfile.py zipfile: remove remaining ResourceWarnings 2010-11-23 00:15:02 +00:00
test_zipfile64.py
test_zipimport.py
test_zipimport_support.py
test_zlib.py #10273: Rename assertRegexpMatches and assertRaisesRegexp to assertRegex and assertRaisesRegex. 2010-12-01 02:32:32 +00:00
testcodec.py
testtar.tar
tf_inherit_check.py
threaded_import_hangers.py
time_hashlib.py
tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt
tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt
tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
tokenize_tests.txt
warning_tests.py
win_console_handler.py
xmltests.py
zipdir.zip