Author: Manuel Jacob <[email protected]>
Branch: py3.3
Changeset: r76188:f4712520c45f
Date: 2015-02-27 22:53 +0100
http://bitbucket.org/pypy/pypy/changeset/f4712520c45f/
Log: Use different filenames for the two test_open_exclusive (one is in
test_fileio.py and one is in test_io).
diff --git a/pypy/module/_io/test/test_fileio.py
b/pypy/module/_io/test/test_fileio.py
--- a/pypy/module/_io/test/test_fileio.py
+++ b/pypy/module/_io/test/test_fileio.py
@@ -227,7 +227,7 @@
FileExistsError = OSError
import _io
- filename = self.tmpfile + '_x'
+ filename = self.tmpfile + '_x1'
raises(ValueError, _io.FileIO, filename, 'xw')
with _io.FileIO(filename, 'x') as f:
assert f.mode == 'xb'
diff --git a/pypy/module/_io/test/test_io.py b/pypy/module/_io/test/test_io.py
--- a/pypy/module/_io/test/test_io.py
+++ b/pypy/module/_io/test/test_io.py
@@ -445,7 +445,7 @@
FileExistsError = OSError
import _io
- filename = self.tmpfile + '_x'
+ filename = self.tmpfile + '_x2'
raises(ValueError, _io.open, filename, 'xw')
with _io.open(filename, 'x') as f:
assert f.mode == 'x'
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit