Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6f2c8 commit f7ef15dCopy full SHA for f7ef15d
1 file changed
Lib/test/test_fcntl.py
@@ -6,12 +6,12 @@
6
import fcntl
7
import FCNTL
8
import os, sys
9
-from test_support import verbose
+from test_support import verbose, TESTFN
10
11
-filename = '/tmp/delete-me'
+filename = TESTFN
12
13
# the example from the library docs
14
-f = open(filename,'w')
+f = open(filename, 'w')
15
rv = fcntl.fcntl(f.fileno(), FCNTL.F_SETFL, os.O_NONBLOCK)
16
if verbose:
17
print 'Status from fnctl with O_NONBLOCK: ', rv
0 commit comments