From 00f2eb4da8111b50b73791f0358ce8a754e80d7c Mon Sep 17 00:00:00 2001 From: Marcus Ottosson Date: Mon, 11 Feb 2019 14:50:36 +0000 Subject: [PATCH] Fix tests --- tests/test_util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_util.py b/tests/test_util.py index 73877e62..89c22ef8 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -11,8 +11,8 @@ ) -def test_async(): - """util.async works as expected""" +def test_defer(): + """util.defer works as expected""" app = QtCore.QCoreApplication(sys.argv) @@ -26,7 +26,7 @@ def on_expensive_function(result): mutable["result"] = result app.quit() - qthread = util.async(expensive_function, + qthread = util.defer(expensive_function, callback=on_expensive_function) app.exec_()