forked from pool/python-aiohttp
* pytest5.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiohttp?expand=0&rev=43
24 lines
866 B
Diff
24 lines
866 B
Diff
From 6f920b154ad4e013ac60e4193ac4606fca20be73 Mon Sep 17 00:00:00 2001
|
|
From: "dependabot-preview[bot]"
|
|
<27856297+dependabot-preview[bot]@users.noreply.github.com>
|
|
Date: Tue, 2 Jul 2019 20:56:53 +0300
|
|
Subject: [PATCH] Bump pytest from 4.6.3 to 5.0.0 (#3879)
|
|
|
|
---
|
|
tests/test_worker.py | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/tests/test_worker.py b/tests/test_worker.py
|
|
index 675b37968..1106820fb 100644
|
|
--- a/tests/test_worker.py
|
|
+++ b/tests/test_worker.py
|
|
@@ -195,7 +195,7 @@ def test__get_valid_log_format_ok(worker, source, result) -> None:
|
|
def test__get_valid_log_format_exc(worker) -> None:
|
|
with pytest.raises(ValueError) as exc:
|
|
worker._get_valid_log_format(WRONG_LOG_FORMAT)
|
|
- assert '%(name)s' in str(exc)
|
|
+ assert '%(name)s' in str(exc.value)
|
|
|
|
|
|
async def test__run_ok_parent_changed(worker, loop,
|