[issue28627] [alpine] shutil.copytree fail to copy a direcotry with broken symlinks

2016-11-06 Thread Israel Fruchter
Israel Fruchter added the comment: the failure looks like that: Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.5/shutil.py", line 359, in copytree raise Error(errors) shutil.Error: [('/bug/broken', '/temp/broken&#

[issue28627] [alpine] shutil.copytree fail to copy a direcotry with broken symlinks

2016-11-06 Thread Israel Fruchter
New submission from Israel Fruchter: this fails on python3.5-alpine and python3.6-alpine (works as fine in python2.7-alpine) cd /bug && ln -s /broken_path/to_nowhere broken python -c "import shutil; shutil.copytree('/bug', '/temp', symlinks=True)" Docke

[issue27376] Add mock_import method to mock module

2016-09-01 Thread Israel Fruchter
Israel Fruchter added the comment: Some real use cases is needed, like testing a code that behave differently on case of package availability. I think something like patch for modules can be useful here, so you could have some control on what would be returned. -- nosy: +fruch

[issue27899] Apostrophe is not replace with ' ElementTree.tostring (also in Element.write)

2016-08-30 Thread Israel Fruchter
Israel Fruchter added the comment: I've now found http://bugs.python.org/issue2647, and seem like this was classify as not a bug. maybe documetion should say it ? or anther way to actuly decide about how to output those -- ___ Python tr

[issue27899] Apostrophe is not replace with ' ElementTree.tostring (also in Element.write)

2016-08-30 Thread Israel Fruchter
New submission from Israel Fruchter: Both on python2.7 and python3.4 >>> from xml.etree import cElementTree as ET >>> text = 'its > < & '' >>> root = ET.fromstring(text.encode('utf-8')) >>> ET.tostring(root, method="

[issue14693] hashlib fallback modules should be built even if openssl *is* available at build time

2012-04-29 Thread Israel Fruchter
Changes by Israel Fruchter : -- versions: +Python 2.6, Python 2.7 ___ Python tracker <http://bugs.python.org/issue14693> ___ ___ Python-bugs-list mailin

[issue14693] hashlib fallback modules should be built even if openssl *is* available at build time

2012-04-29 Thread Israel Fruchter
Israel Fruchter added the comment: I think (2) is very important, and I agree Gregory about the distro responsibility for size. further more, if everything is define using the standard Modules/Setup, or Modules/Setup.local during compile/build time, why having a fallback anyhow in

[issue13929] fnmatch to support escape characters

2012-02-02 Thread Israel Fruchter
New submission from Israel Fruchter : fnmatch to support escape characters: like that: >>> name = "Document[Ver.2].doc" >>> pattern = "*\[Ver.2\]*" >>> fnmatch.fnmatch(name, pattern) True that's also fix glob module: >>&