[Python-Dev] [Python-checkins] r85463 - python/branches/py3k/Lib/test/test_import.py (original) (raw)
Barry Warsaw barry at python.org
Thu Oct 14 16:03:33 CEST 2010
- Previous message: [Python-Dev] A new warning category?
- Next message: [Python-Dev] [Python-checkins] r85481 - in python/branches/py3k: Misc/NEWS configure.in
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Oct 14, 2010, at 09:34 AM, georg.brandl wrote:
Author: georg.brandl Date: Thu Oct 14 09:34:56 2010 New Revision: 85463
Log: Better check for "any optimize option given". Modified: python/branches/py3k/Lib/test/testimport.py Modified: python/branches/py3k/Lib/test/testimport.py ============================================================================== --- python/branches/py3k/Lib/test/testimport.py (original) +++ python/branches/py3k/Lib/test/testimport.py Thu Oct 14 09:34:56 2010 @@ -521,7 +521,7 @@ self.assertTrue(os.path.exists('pycache')) self.assertTrue(os.path.exists(os.path.join( 'pycache', '{}.{}.py{}'.format( - TESTFN, self.tag, sys.flags.optimize and 'o' or 'c')))) + TESTFN, self.tag, debug and 'c' or 'o'))))
You might want to use imp.cache_from_source() instead for consistency.
@unittest.skipUnless(os.name == 'posix', "test meaningful only on posix systems")
-Barry -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: not available URL: <http://mail.python.org/pipermail/python-dev/attachments/20101014/e7eb393a/attachment.pgp>
- Previous message: [Python-Dev] A new warning category?
- Next message: [Python-Dev] [Python-checkins] r85481 - in python/branches/py3k: Misc/NEWS configure.in
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]