migrate pyqt5 to pyside6
This commit is contained in:
@@ -66,6 +66,21 @@ def _scratch_dir() -> Path:
|
||||
return path
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def tmp_dir():
|
||||
"""A workspace-local scratch directory, cleared per test.
|
||||
|
||||
Deliberately not ``tmp_path``: this suite has to run inside a sandboxed
|
||||
shell, and ``tmp_path`` depends on a writable process temp root that such an
|
||||
environment may not provide.
|
||||
"""
|
||||
import shutil
|
||||
|
||||
path = _scratch_dir()
|
||||
yield path
|
||||
shutil.rmtree(path, ignore_errors=True)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def make_window(qt_app, monkeypatch):
|
||||
"""Build a window whose preference writes stay inside a scratch directory.
|
||||
|
||||
Reference in New Issue
Block a user