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 vstinner
Recipients flox, vstinner
Date 2010-01-21.02:59:28
SpamBayes Score 0.00013535614
Marked as misclassified No
Message-id <1264042771.3.0.456592237963.issue7668@psf.upfronthosting.co.za>
In-reply-to
Content
CGIHTTPServerTestCase creates .py files with sys.executable in a shebang:
-----
cgi_file1 = """\
#!%s
..."""

with open(self.file1_path, 'w') as file1:
    file1.write(cgi_file1 % sys.executable)
-----
The shebang have to be the first line, and the encoding cookie (#coding:...) have to be written before any non-ASCII character. Since the shebang contains non-ASCII character, the cookie have to be written before... which is impossible.

Whereas issue #7708 contains the tested modules, this issue is specific to the tests themself.

Possible workaround: create a symbolic link to an ASCII directory (eg. "/tmp/python") and use the link in the shebang.
History
Date User Action Args
2010-01-21 02:59:39vstinnersetrecipients: + vstinner, flox
2010-01-21 02:59:33vstinnersetmessageid: <1264042771.3.0.456592237963.issue7668@psf.upfronthosting.co.za>
2010-01-21 02:59:29vstinnerlinkissue7668 messages
2010-01-21 02:59:28vstinnercreate