Fix unclear error when function is not called correctly (#19)

This commit is contained in:
Stan Triepels
2022-10-20 17:24:17 +02:00
committed by GitHub
parent 8822e7d409
commit 0aac4e7b0d
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ def test_sync(broker):
@pytest.mark.django_db
def test_sync_raise_exception(broker):
with pytest.raises(TaskError):
with pytest.raises(Exception):
async_task("django_q.tests.tasks.raise_exception", broker=broker, sync=True)