summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/x11session.py7
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()