[qmtest] [PATCH] Fix open_temporary_file_fd

Andrew Funk afunk at ll.mit.edu
Tue Feb 17 15:08:07 UTC 2004


Hi Mark,

Since I have only just started to use QMTest under Windows I am still
getting up to speed.  To get started, I downloaded the self-extracting
executable from the website and followed the instructions.  This
installed something in my C:\Python23\Scripts directory, separate from
the installation that I use under Linux.  What should be my procedure
for installing and running the latest CVS version under Windows?

Thanks,
Andy

-----Original Message-----
From: Mark Mitchell [mailto:mark at codesourcery.com] 
Sent: Sunday, February 15, 2004 3:39 PM
To: Nathaniel Smith
Cc: QMTest List
Subject: Re: [qmtest] [PATCH] Fix open_temporary_file_fd


Nathaniel Smith wrote:

> Attached patch fixes regressions caused by changes to 
> open_temporary_file_fd.

Oh, bummer.  I only tested on Windows, as is clear.

> Okay to apply?  Feels ugly, using the if there, but I guess the 
> function'll get ripped out entirely when we start assuming Python 
> 2.3...

I'm disappointed that "mktemp" doesn't do the right thing with a "None"
argument.  Maybe using the empty string ("") as the default (instead of 
None) would be the right choice and avoid the conditional?

If that works, it's OK; if not, your original patch is OK.

Please apply it to the 2.1 branch as well as the mainline, since I put 
my patch in both places.

And, yes, at some point (perhaps 2.2) we'll require Python 2.3, and then

we can just get rid of this stuff.

Thanks,

-- 
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com





More information about the qmtest mailing list