summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sax.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | use assert[Not]In where appropriateBenjamin Peterson2010-01-191-3/+3
|/ | | | A patch from Dave Malcolm.
* #2501 xml.sax.parser doesn't terminate when given a filename; enable some ↵Benjamin Peterson2008-09-041-6/+3
| | | | | | more tests! Reviewed by myself
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-1/+1
|
* Merged revisions 61981,61984-61987,61992-61993,61997-62000 via svnmerge fromChristian Heimes2008-03-281-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r61981 | amaury.forgeotdarc | 2008-03-28 01:21:34 +0100 (Fri, 28 Mar 2008) | 2 lines test_future3.py is a regular test file, and should be part of the test suite ........ r61984 | jeffrey.yasskin | 2008-03-28 05:11:18 +0100 (Fri, 28 Mar 2008) | 6 lines Kill a race in test_threading in which the exception info in a thread finishing up after it was joined had a traceback pointing to that thread's (deleted) target attribute, while the test was trying to check that the target was destroyed. Big thanks to Antoine Pitrou for diagnosing the race and pointing out sys.exc_clear() to kill the exception early. This fixes issue 2496. ........ r61985 | neal.norwitz | 2008-03-28 05:41:34 +0100 (Fri, 28 Mar 2008) | 1 line Allow use of other ports so the test can pass if 9091 is in use ........ r61986 | jeffrey.yasskin | 2008-03-28 05:53:10 +0100 (Fri, 28 Mar 2008) | 2 lines Print more information the next time test_socket throws the wrong exception. ........ r61987 | neal.norwitz | 2008-03-28 05:58:51 +0100 (Fri, 28 Mar 2008) | 5 lines Revert r61969 which added casts to Py_CHARMASK to avoid compiler warnings. Rather than sprinkle casts throughout the code, change Py_CHARMASK to always cast it's result to an unsigned char. This should ensure we do the right thing when accessing an array with the result. ........ r61992 | neal.norwitz | 2008-03-28 06:34:59 +0100 (Fri, 28 Mar 2008) | 2 lines Fix compiler warning about finite() missing on Solaris. ........ r61993 | neal.norwitz | 2008-03-28 07:34:03 +0100 (Fri, 28 Mar 2008) | 11 lines Bug 1503: Get the test to pass on OSX. This should make the test more reliable, but I'm not convinced it is the right solution. We need to determine if this causes the test to hang on any platforms or do other bad things. Even if it gets the test to pass reliably, it might be that we want to fix this in socket. The socket returned from accept() is different on different platforms (inheriting attributes or not) and we might want to ensure that the attributes (at least blocking) is the same across all platforms. ........ r61997 | neal.norwitz | 2008-03-28 08:36:31 +0100 (Fri, 28 Mar 2008) | 1 line Name the main method correctly so the test is run ........ r61998 | gregory.p.smith | 2008-03-28 09:00:44 +0100 (Fri, 28 Mar 2008) | 7 lines This patch moves some tests from test_urllib2_net to test_urllib2_localnet. The moved tests use a local server rather than going out to external servers. Accepts patch from issue2429. Contributed by Jerry Seutter & Michael Foord (fuzzyman) at PyCon 2008. ........ r61999 | georg.brandl | 2008-03-28 09:06:56 +0100 (Fri, 28 Mar 2008) | 2 lines #2406: add examples to gzip docs. ........ r62000 | gregory.p.smith | 2008-03-28 09:32:09 +0100 (Fri, 28 Mar 2008) | 4 lines Accept patch issue2426 by Paul Kippes (kippesp). Adds sqlite3.Connection.iterdump to allow dumping of databases. ........
* Remove RISCOS supportSkip Montanaro2007-08-161-5/+5
|