]> granicus.if.org Git - python/commitdiff
Use test_support.TESTFN as the temporary filename.
authorFred Drake <fdrake@acm.org>
Wed, 18 Oct 2000 01:21:38 +0000 (01:21 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 18 Oct 2000 01:21:38 +0000 (01:21 +0000)
Fix a minor stylistic nit.

This closes SourceForge bug #117032.

Lib/test/test_fcntl.py

index a1da0ddc8e981528fea48abffd0f4da2e2ec669a..18b723791b6668207be88bb274d8bd8a083dbfe0 100755 (executable)
@@ -6,12 +6,12 @@ import struct
 import fcntl
 import FCNTL
 import os, sys
-from test_support import verbose
+from test_support import verbose, TESTFN
 
-filename = '/tmp/delete-me'
+filename = TESTFN
 
 # the example from the library docs
-f = open(filename,'w')
+f = open(filename, 'w')
 rv = fcntl.fcntl(f.fileno(), FCNTL.F_SETFL, os.O_NONBLOCK)
 if verbose:
     print 'Status from fnctl with O_NONBLOCK: ', rv