summaryrefslogtreecommitdiff
path: root/Modules/xxmodule.c
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2002-08-14 01:05:57 +0000
committerTim Peters <tim.peters@gmail.com>2002-08-14 01:05:57 +0000
commita46298524aa566cf89f676786e3ce8b9a931b2a4 (patch)
tree09f124c51f303fcc9df55dd90f4a34c21837d6d0 /Modules/xxmodule.c
parent29f3f231ba932cd9a2620601978bc948fba3b60c (diff)
downloadcpython-a46298524aa566cf89f676786e3ce8b9a931b2a4.tar.gz
runtest(): I don't know why we don't just use TESTFN, but if we have to
do bizarre things to get a temp file, I changed it to use mkstemp instead of NamedTemporaryFile. This tried to leave the file open while passing its name to execfile(). On Win2K (but not Win9X), though, a file created with O_TEMPORARY cannot be opened again, so the test failed with a permission error when execfile tried to open it. Closer to the truth: a file created with O_TEMPORARY can be opened again, but only if the file is also created with SHARE_DELETE access via the Win32 CreateFile() function. There's no way to get at that from MS's version of libc, though (we'd have to ditch the "std" C file functions in favor of Win32 API calls).
Diffstat (limited to 'Modules/xxmodule.c')
0 files changed, 0 insertions, 0 deletions