[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2015-11-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: test needed -> resolved status: pending -> closed ___ Python tracker

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d896fd0a8ba7 by Eli Bendersky in branch '3.2': ISsue #14988: restore Python 2's behavior of raising ImportError when unable to load pyexpat, instead of a SystemError/RuntimeError

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-17 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Committed fixes to raise ImportError in both Python 3.2 and 3.3 At the moment no test added because I'm having trouble using import_fresh_module to avoid re-importing of pyexpat in the etree tests (it gets imported anyway). --

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-16 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I tried blocking the import of 'pyexpat' in a test by using test.support.import_fresh_module, placing 'pyexpat' into the blocked list, but it doesn't work (i.e. pyexpat, if it exists, is still imported) --

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-16 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Benjamin, what old behavior? Did it happen to raise ImportError historically and only recent changes made it RuntimeError? I'm not sure this is the case. -- ___ Python tracker rep...@bugs.python.org

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-16 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Did it happen to raise ImportError historically and only recent changes made it RuntimeError? I'm not sure this is the case. ImportError was raised in Python 2. -- ___

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-15 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: IMHO wrong exception could be treated as a bug, which could be fixed in 3.2 and 3.3. Benjamin Peterson and Georg Brandl: What do you think? P.S. is there any way to create a test for it? You can set

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-15 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: IMHO, it can be fixed as people were relying on the old behavior. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14988 ___

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-14 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I agree, but this will now be delayed to 3.4, since it's not a bug-fixing change in functionality. P.S. is there any way to create a test for it? -- assignee: - eli.bendersky priority: normal - low type: - behavior versions: -Python

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-07 Thread Stephen Thorne
Stephen Thorne step...@thorne.id.au added the comment: With the attached patch, with python3.3(trunk) I instead get: ./python.exe -c 'import _elementtree' Traceback (most recent call last): File string, line 1, in module File frozen importlib._bootstrap, line 1294, in _find_and_load

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-07-05 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- components: +Library (Lib) stage: - test needed versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14988 ___

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-06-03 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: If, after building of Python, libexpat.so (library used by pyexpat module) has been broken/removed or pyexpat module has been broken/removed, then attempt of import of _elementtree module, which requires pyexpat

[issue14988] _elementtree: Raise ImportError when importing of pyexpat fails

2012-06-03 Thread Zac Medico
Changes by Zac Medico zmed...@gentoo.org: -- nosy: +zmedico ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14988 ___ ___ Python-bugs-list mailing