diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py index a1da0ddc8e9..18b723791b6 100755 --- a/Lib/test/test_fcntl.py +++ b/Lib/test/test_fcntl.py @@ -6,12 +6,12 @@ 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