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 neologix
Recipients Arfrever, brett.cannon, neologix, pitrou, python-dev, vinay.sajip, vstinner
Date 2011-11-03.19:06:12
SpamBayes Score 4.5606785e-06
Marked as misclassified No
Message-id <1320347173.55.0.656255701663.issue13303@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a patch using the '.tmp' suffix.
I also updated test_import.
Note that the current test_import.test_execute_bit_not_copied is a no-op:
"""
                fname = TESTFN + os.extsep + "py"
                create_empty_file(fname)
                os.chmod(fname, (stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH |
                                 stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH))
                __import__(TESTFN)
                fn = imp.cache_from_source(fname)
                if not os.path.exists(fn):
                    self.fail("__import__ did not result in creation of "
                              "either a .pyc or .pyo file")
                    s = os.stat(fn)
                    self.assertEqual(
                        stat.S_IMODE(s.st_mode),
                        stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH)

"""

The indentation is wrong: the stat() is never performed...
I'll fix that in 3.2 and 2.7.
History
Date User Action Args
2011-11-03 19:06:13neologixsetrecipients: + neologix, brett.cannon, vinay.sajip, pitrou, vstinner, Arfrever, python-dev
2011-11-03 19:06:13neologixsetmessageid: <1320347173.55.0.656255701663.issue13303@psf.upfronthosting.co.za>
2011-11-03 19:06:12neologixlinkissue13303 messages
2011-11-03 19:06:12neologixcreate