Fix TestPyQIODevice.failing_open on Windows.
This commit is contained in:
parent
00747be9d3
commit
1fcce12870
@ -702,7 +702,9 @@ class TestPyQIODevice:
|
|||||||
dev = qtutils.PyQIODevice(qf)
|
dev = qtutils.PyQIODevice(qf)
|
||||||
with pytest.raises(OSError) as excinfo:
|
with pytest.raises(OSError) as excinfo:
|
||||||
dev.open(QIODevice.WriteOnly)
|
dev.open(QIODevice.WriteOnly)
|
||||||
assert str(excinfo.value) == 'Is a directory'
|
errors = ['Access is denied.', # Linux/OS X
|
||||||
|
'Is a directory'] # Windows
|
||||||
|
assert str(excinfo.value) in errors
|
||||||
assert dev.closed
|
assert dev.closed
|
||||||
|
|
||||||
def test_fileno(self, pyqiodev):
|
def test_fileno(self, pyqiodev):
|
||||||
|
Loading…
Reference in New Issue
Block a user