summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-10-18 01:21:38 (GMT)
committerFred Drake <fdrake@acm.org>2000-10-18 01:21:38 (GMT)
commitf7ef15d6ec5716a394a4b7a4ca3dd0fb66bcfdd3 (patch)
treed5e0ead75640dc0b88231a6a4414a197ab699a65 /Lib/test
parentad6f2c8007b2de97517decf858954c264aaa10a5 (diff)
downloadcpython-f7ef15d6ec5716a394a4b7a4ca3dd0fb66bcfdd3.zip
cpython-f7ef15d6ec5716a394a4b7a4ca3dd0fb66bcfdd3.tar.gz
cpython-f7ef15d6ec5716a394a4b7a4ca3dd0fb66bcfdd3.tar.bz2
Use test_support.TESTFN as the temporary filename.
Fix a minor stylistic nit. This closes SourceForge bug #117032.
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/test_fcntl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py
index a1da0dd..18b7237 100755
--- a/Lib/test/test_fcntl.py
+++ b/Lib/test/test_fcntl.py
@@ -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