aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/signals/bug_311.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/signals/bug_311.py')
-rw-r--r--sources/pyside6/tests/signals/bug_311.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside6/tests/signals/bug_311.py b/sources/pyside6/tests/signals/bug_311.py
index ef59dafa1..6772f89b7 100644
--- a/sources/pyside6/tests/signals/bug_311.py
+++ b/sources/pyside6/tests/signals/bug_311.py
@@ -33,7 +33,8 @@ import os
import sys
import unittest
-sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from pathlib import Path
+sys.path.append(os.fspath(Path(__file__).resolve().parents[1]))
from init_paths import init_test_paths
init_test_paths(False)