summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sax.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-45229: Remove test_main in many tests (GH-28405)Serhiy Storchaka2021-09-191-19/+2
| | | | | | | | | Instead of explicitly enumerate test classes for run_unittest() use the unittest ability to discover tests. This also makes these tests discoverable and runnable with unittest. load_tests() can be used for dynamic generating tests and adding doctests. setUpModule(), tearDownModule() and addModuleCleanup() can be used for running code before and after all module tests.
* bpo-35018: Sax parser should provide user access to lexical handlers (GH-20958)Zackery Spytz2020-08-091-2/+155
| | | Co-Authored-By: Jonathan Gossage <jgossage@gmail.com>
* bpo-40275: Use new test.support helper submodules in tests (GH-21451)Hai Shi2020-08-031-14/+16
|
* bpo-40275: Remove test.support.TESTFN_ENCODING (GH-20482)Hai Shi2020-05-281-1/+2
| | | Replace test.support.TESTFN_ENCODING with sys.getfilesystemencoding().
* bpo-37421: urllib.request tests call urlcleanup() (GH-14529)Victor Stinner2019-07-021-0/+4
| | | | | | | | urllib.request tests now call urlcleanup() to remove temporary files created by urlretrieve() tests and to clear the _opener global variable set by urlopen() and functions calling indirectly urlopen(). regrtest now checks if urllib.request._url_tempfiles and urllib.request._opener are changed by tests.
* bpo-31658: Make xml.sax.parse accepting Path objects (GH-8564)Mickaël Schoentgen2019-04-141-1/+12
|
* bpo-35202: Remove unused imports in tests. (GH-10561)Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)2018-11-161-1/+0
|
* bpo-34789: make xml.sax.make_parser accept iterables of all types (GH-9576)Andrés Delfino2018-10-261-0/+28
|
* bpo-17239: Disable external entities in SAX parser (GH-9217)Christian Heimes2018-09-231-2/+58
| | | | | | | | | | | | The SAX parser no longer processes general external entities by default to increase security. Before, the parser created network connections to fetch remote files or loaded local files from the file system for DTD and entities. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue17239
* bpo-30264: ExpatParser closes the source on error (#1451)Victor Stinner2017-05-051-6/+18
| | | | | | | | ExpatParser.parse() of xml.sax.xmlreader now always closes the source: close the file object or the urllib object if source is a string (not an open file-like object). The change fixes a ResourceWarning on parsing error. Add test_parse_close_source() unit test.
* Issue #24125: Saved error's line and column numbers when an error is occuredSerhiy Storchaka2015-05-061-0/+2
|\ | | | | | | during closing expatreader. Fixed a regression introduced in issue #23865.
| * Issue #24125: Saved error's line and column numbers when an error is occuredSerhiy Storchaka2015-05-061-0/+2
| | | | | | | | during closing expatreader. Fixed a regression introduced in issue #23865.
* | Issue #10590: xml.sax.parseString() now supports string argument.Serhiy Storchaka2015-04-041-0/+7
| |
* | Issue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().Serhiy Storchaka2015-04-021-1/+123
|\ \ | |/
| * Issue #10590: Added tests for xml.sax.parse() and xml.sax.parseString().Serhiy Storchaka2015-04-021-1/+123
| |
* | Issue #2175: SAX parsers now support a character stream of InputSource object.Serhiy Storchaka2015-04-021-0/+33
|/
* Issue #2175: Added tests for xml.sax.saxutils.prepare_input_source().Serhiy Storchaka2015-04-021-5/+71
| | | | Made test XML files non-ASCII.
* Issue #22915: SAX parser now supports files opened with file descriptor orSerhiy Storchaka2014-11-271-0/+24
| | | | bytes path.
* Close file before reopening to keep Windows happy in test_sax.Richard Oudkerk2013-05-181-5/+6
|
* Fix ResourceWarnings in test_saxAntoine Pitrou2013-05-131-1/+4
|
* Issue #17606: Fixed support of encoded byte strings in the XMLGeneratorSerhiy Storchaka2013-05-121-0/+18
| | | | | characters() and ignorableWhitespace() methods. Original patch by Sebastian Ortiz Vasquez.
* merge with 3.2Georg Brandl2013-05-121-0/+31
|\
| * Issue #17915: Fix interoperability of xml.sax with file objects returned byGeorg Brandl2013-05-121-0/+31
| | | | | | | | codecs.open().
* | Merge #17448: Make test_sax skip if there are no xml parsers.R David Murray2013-03-181-2/+2
|\ \ | |/ | | | | Patch by Rafael Santos.
| * #17448: Make test_sax skip if there are no xml parsers.R David Murray2013-03-181-2/+2
| | | | | | | | Patch by Rafael Santos.
* | Issue #1470548: Add test for fragment producing with XMLGenerator.Serhiy Storchaka2013-02-251-0/+15
|\ \ | |/
| * Issue #1470548: Add test for fragment producing with XMLGenerator.Serhiy Storchaka2013-02-251-0/+15
| |
* | Issue #1470548: XMLGenerator now works with binary output streams.Serhiy Storchaka2013-02-101-71/+144
|\ \ | |/
| * Issue #1470548: XMLGenerator now works with binary output streams.Serhiy Storchaka2013-02-101-71/+144
| |
* | Fix tests for issue #11159.Serhiy Storchaka2013-02-021-0/+16
|\ \ | |/
| * Fix tests for issue #11159.Serhiy Storchaka2013-02-021-0/+16
| |
* | Issue #11159: Add tests for testing SAX parser support of non-ascii file names.Serhiy Storchaka2013-02-021-0/+44
|\ \ | |/
| * Issue #11159: Add tests for testing SAX parser support of non-ascii file names.Serhiy Storchaka2013-02-021-0/+44
| |
* | Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-2/+2
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
| * Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-181-2/+2
| | | | | | | | Patch by Serhiy Storchaka.
* | merge 11164Martin v. Löwis2011-05-091-45/+0
|\ \ | |/
| * merge 11164Martin v. Löwis2011-05-091-45/+0
| |\
| | * Stop trying to use _xmlplus in the xml module. Closes #11164.Martin v. Löwis2011-05-091-45/+0
| | | | | | | | | | | | Patch by Arfrever Frehtes Taifersar Arahesis.
| | * Merged revisions 86596 via svnmerge fromEzio Melotti2010-11-211-111/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line #9424: Replace deprecated assert* methods in the Python test suite. ........
| | * Merged revisions 85861 via svnmerge fromAntoine Pitrou2010-10-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85861 | antoine.pitrou | 2010-10-27 20:52:48 +0200 (mer., 27 oct. 2010) | 3 lines Recode modules from latin-1 to utf-8 ........
| | * Merged revisions 85858 via svnmerge fromAntoine Pitrou2010-10-271-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85858 | antoine.pitrou | 2010-10-27 20:33:30 +0200 (mer., 27 oct. 2010) | 5 lines Issue #5027: The standard `xml` namespace is now understood by xml.sax.saxutils.XMLGenerator as being bound to http://www.w3.org/XML/1998/namespace. Patch by Troy J. Farrell. ........
* | | Normalize the encoding names for Latin-1 and UTF-8 toMarc-André Lemburg2011-02-251-2/+2
|/ / | | | | | | | | | | | | | | | | | | 'latin-1' and 'utf-8'. These are optimized in the Python Unicode implementation to result in more direct processing, bypassing the codec registry. Also see issue11303.
* | #9424: Replace deprecated assert* methods in the Python test suite.Ezio Melotti2010-11-201-119/+119
| |
* | fix resource warnings in test_sax #10269Benjamin Peterson2010-10-311-4/+7
| |
* | Recode modules from latin-1 to utf-8Antoine Pitrou2010-10-271-3/+3
| |
* | Issue #5027: The standard `xml` namespace is now understood byAntoine Pitrou2010-10-271-0/+55
| | | | | | | | | | xml.sax.saxutils.XMLGenerator as being bound to http://www.w3.org/XML/1998/namespace. Patch by Troy J. Farrell.
* | #1343: Add short_empty_elements option to XMLGenerator.R. David Murray2010-10-171-0/+90
| | | | | | | | Patch and tests by Neil Muller.
* | Issue #9425: skip tests if a filename is not encodableVictor Stinner2010-08-071-0/+5
| |
* | Merged revisions 78838-78839,78917,78919,78934,78937 via svnmerge fromFlorent Xicluna2010-03-131-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78838 | florent.xicluna | 2010-03-11 15:36:19 +0100 (jeu, 11 mar 2010) | 2 lines Issue #6472: The xml.etree package is updated to ElementTree 1.3. The cElementTree module is updated too. ........ r78839 | florent.xicluna | 2010-03-11 16:55:11 +0100 (jeu, 11 mar 2010) | 2 lines Fix repr of tree Element on windows. ........ r78917 | florent.xicluna | 2010-03-13 12:18:49 +0100 (sam, 13 mar 2010) | 2 lines Move the xml test data to their own directory. ........ r78919 | florent.xicluna | 2010-03-13 13:41:48 +0100 (sam, 13 mar 2010) | 2 lines Do not chdir when running test_xml_etree, and enhance the findfile helper. ........ r78934 | florent.xicluna | 2010-03-13 18:56:19 +0100 (sam, 13 mar 2010) | 2 lines Update some parts of the xml.etree documentation. ........ r78937 | florent.xicluna | 2010-03-13 21:30:15 +0100 (sam, 13 mar 2010) | 3 lines Add the keyword argument "method=None" to the .write() method and the tostring/tostringlist functions. Update the function, class and method signatures, according to the new convention. ........
* | use assert[Not]In where appropriateEzio Melotti2010-01-231-2/+2
| |