From 9eacf426937784224145231a3302b9915567fde4 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 29 Sep 2016 06:36:31 +0200 Subject: [PATCH] Import modules --- tests/end2end/test_invocations.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/end2end/test_invocations.py b/tests/end2end/test_invocations.py index b7809779a..2102b5f54 100644 --- a/tests/end2end/test_invocations.py +++ b/tests/end2end/test_invocations.py @@ -27,8 +27,7 @@ import pytest from PyQt5.QtCore import QProcess -from end2end.fixtures.quteprocess import QuteProc -from end2end.fixtures.testprocess import ProcessExited +from end2end.fixtures import quteprocess, testprocess def _base_args(config): @@ -190,13 +189,13 @@ def test_version(request): args = ['--version'] + _base_args(request.config) # can't use quteproc_new here because it's confused by # early process termination - proc = QuteProc(request) + proc = quteprocess.QuteProc(request) proc.proc.setProcessChannelMode(QProcess.SeparateChannels) try: proc.start(args) proc.wait_for_quit() - except ProcessExited: + except testprocess.ProcessExited: assert proc.proc.exitStatus() == QProcess.NormalExit else: assert False