Commit f7ef15d6 authored by Fred Drake's avatar Fred Drake

Use test_support.TESTFN as the temporary filename.

Fix a minor stylistic nit.

This closes SourceForge bug #117032.
parent ad6f2c80
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment