diff options
author | Benjamin Berg <bberg@redhat.com> | 2021-07-19 17:07:05 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2021-07-22 14:23:50 +0200 |
commit | 65ea74cf6d897b00debc81bd7b9727466952b0f5 (patch) | |
tree | 3e76fc30463f67cfc62cf19ca08a48756a872338 /tests | |
parent | a8e8843c52933ea36a5acba174b7ff88cc9ad3af (diff) | |
download | gnome-settings-daemon-65ea74cf6d897b00debc81bd7b9727466952b0f5.tar.gz |
tests: Use addClassCleanup in X11 session helper
Diffstat (limited to 'tests')
-rw-r--r-- | tests/x11session.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/x11session.py b/tests/x11session.py index 7fb0b834..faa22483 100644 --- a/tests/x11session.py +++ b/tests/x11session.py @@ -56,6 +56,8 @@ class X11SessionTestCase(DBusTestCase): @classmethod def setUpClass(klass): klass.start_xorg() + klass.addClassCleanup(klass.stop_xorg) + klass.start_system_bus() klass.start_session_bus() @@ -112,8 +114,3 @@ class X11SessionTestCase(DBusTestCase): klass.xorg.wait() del klass.xorg - @classmethod - def tearDownClass(klass): - DBusTestCase.tearDownClass() - - klass.stop_xorg() |