Relax qt_log_ignore pattern
Earlier Qt versions show this: QStandardPaths: wrong ownership on runtime directory /tmp/pytest-of-user/pytest-0/test_linux_invalid_runtimedir0/does-not-exist, -2 instead of 1000
This commit is contained in:
parent
64b47fc3a2
commit
3ca4916b76
@ -138,8 +138,7 @@ class TestStandardDir:
|
|||||||
assert func() == str(tmpdir.join(*subdirs))
|
assert func() == str(tmpdir.join(*subdirs))
|
||||||
|
|
||||||
@pytest.mark.linux
|
@pytest.mark.linux
|
||||||
@pytest.mark.qt_log_ignore(r'^QStandardPaths: XDG_RUNTIME_DIR points to '
|
@pytest.mark.qt_log_ignore(r'^QStandardPaths: ')
|
||||||
r'non-existing path')
|
|
||||||
def test_linux_invalid_runtimedir(self, monkeypatch, tmpdir):
|
def test_linux_invalid_runtimedir(self, monkeypatch, tmpdir):
|
||||||
"""With invalid XDG_RUNTIME_DIR, fall back to TempLocation."""
|
"""With invalid XDG_RUNTIME_DIR, fall back to TempLocation."""
|
||||||
monkeypatch.setenv('XDG_RUNTIME_DIR', str(tmpdir / 'does-not-exist'))
|
monkeypatch.setenv('XDG_RUNTIME_DIR', str(tmpdir / 'does-not-exist'))
|
||||||
|
Loading…
Reference in New Issue
Block a user