This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients Claudiu.Popa, ezio.melotti, vajrasky
Date 2014-06-18.15:21:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1403104900.26.0.990355623783.issue20069@psf.upfronthosting.co.za>
In-reply-to
Content
Here is the patch based on Claudiu's comment and Serhiy's commit (http://hg.python.org/cpython/rev/4b187f5aa960).

Claudiu (Thanks!!!), I can not apply two of your suggestions:
"You could use support.import_module here in order to skip the test if pwd can't be imported."
=> It will skip the entire file if I do that which is bad for Windows.

"You could use assertRaisesRegex."
=> I can not because assertRaisesRegex can not be used with "with" statement.
History
Date User Action Args
2014-06-18 15:21:40vajraskysetrecipients: + vajrasky, ezio.melotti, Claudiu.Popa
2014-06-18 15:21:40vajraskysetmessageid: <1403104900.26.0.990355623783.issue20069@psf.upfronthosting.co.za>
2014-06-18 15:21:40vajraskylinkissue20069 messages
2014-06-18 15:21:40vajraskycreate