[pypy-svn] r30026 - pypy/dist/pypy/module/fcntl/test
rhymes at codespeak.net
rhymes at codespeak.net
Fri Jul 14 01:40:32 CEST 2006
Author: rhymes
Date: Fri Jul 14 01:40:29 2006
New Revision: 30026
Modified:
pypy/dist/pypy/module/fcntl/test/test_fcntl.py
Log:
fix to pass on linux
Modified: pypy/dist/pypy/module/fcntl/test/test_fcntl.py
==============================================================================
--- pypy/dist/pypy/module/fcntl/test/test_fcntl.py (original)
+++ pypy/dist/pypy/module/fcntl/test/test_fcntl.py Fri Jul 14 01:40:29 2006
@@ -3,8 +3,9 @@
import os
def teardown_module(mod):
- if os.path.exists("foobar"):
- os.unlink("foobar")
+ for i in "abcde":
+ if os.path.exists("foobar"):
+ os.unlink("foobar")
class AppTestFcntl:
def setup_class(cls):
@@ -14,7 +15,7 @@
def test_conv_descriptor(self):
import fcntl
- f = open("foobar", "w+")
+ f = open("a", "w+")
raises(TypeError, fcntl._conv_descriptor, "foo")
raises(TypeError, fcntl._conv_descriptor, 2.0)
@@ -33,7 +34,7 @@
import sys
import struct
- f = open("foobar", "w+")
+ f = open("b", "w+")
fcntl.fcntl(f, 1, 0)
fcntl.fcntl(f, 1)
@@ -115,7 +116,7 @@
import fcntl
import sys
- f = open("foobar", "w+")
+ f = open("c", "w+")
raises(TypeError, fcntl.flock, "foo")
raises(TypeError, fcntl.flock, f, "foo")
@@ -130,7 +131,7 @@
def test_lockf(self):
import fcntl
- f = open("foobar", "w+")
+ f = open("d", "w+")
raises(TypeError, fcntl.lockf, f, "foo")
raises(TypeError, fcntl.lockf, f, fcntl.LOCK_UN, "foo")
@@ -147,7 +148,7 @@
import array
import sys
- f = open("foobar", "w+")
+ f = open("e", "w+")
if "linux" in sys.platform:
TIOCGPGRP = 0x540f
More information about the Pypy-commit
mailing list