Skip to content

Commit 4ddde58

Browse files
committed
Organize pytest a bit
1 parent 3055d63 commit 4ddde58

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ build-backend = "poetry.core.masonry.api"
5151
[tool.pytest]
5252
addopts = "-n auto"
5353
testpaths = ["tests"]
54+
55+
[tool.pytest.ini_options]
56+
markers = ["raises"]

qasync/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,10 @@ def run_forever(self):
373373
self.__log_debug("Starting Qt event loop")
374374
asyncio.events._set_running_loop(self)
375375
rslt = -1
376-
if hasattr(self.__app, "exec_"):
377-
rslt = self.__app.exec_()
378-
else:
376+
if hasattr(self.__app, "exec"):
379377
rslt = self.__app.exec()
378+
else:
379+
rslt = self.__app.exec_()
380380
self.__log_debug("Qt event loop ended with result %s", rslt)
381381
return rslt
382382
finally:

0 commit comments

Comments
 (0)