Projects
Mega:24.03:SP1:Everything
python-pytest-mock
_service:tar_scm:pytest-mock-issue272-asyncio.p...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:pytest-mock-issue272-asyncio.patch of Package python-pytest-mock
From 18f6ba2f7733e0145c87038bed8e1f95b1125e56 Mon Sep 17 00:00:00 2001 From: li-miaomiao_zhr <mmlidc@isoftstone.com> Date: Wed, 28 Jun 2023 15:08:15 +0800 Subject: [PATCH] pytest mock issue272 asyncio --- tests/test_pytest_mock.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_pytest_mock.py b/tests/test_pytest_mock.py index 3d53241..5e3ac7b 100644 --- a/tests/test_pytest_mock.py +++ b/tests/test_pytest_mock.py @@ -948,7 +948,7 @@ def test_plain_stopall(testdir: Any) -> None: """ ) result = testdir.runpytest_subprocess() - result.stdout.fnmatch_lines("* 1 passed in *") + result.stdout.fnmatch_lines("* 1 passed*") assert "RuntimeError" not in result.stderr.str() @@ -1093,7 +1093,7 @@ def test_used_with_class_scope(testdir: Any) -> None: ) result = testdir.runpytest_subprocess() assert "AssertionError" not in result.stderr.str() - result.stdout.fnmatch_lines("* 1 passed in *") + result.stdout.fnmatch_lines("* 1 passed*") def test_used_with_module_scope(testdir: Any) -> None: @@ -1121,7 +1121,7 @@ def test_used_with_module_scope(testdir: Any) -> None: ) result = testdir.runpytest_subprocess() assert "AssertionError" not in result.stderr.str() - result.stdout.fnmatch_lines("* 1 passed in *") + result.stdout.fnmatch_lines("* 1 passed*") def test_used_with_package_scope(testdir: Any) -> None: @@ -1149,7 +1149,7 @@ def test_used_with_package_scope(testdir: Any) -> None: ) result = testdir.runpytest_subprocess() assert "AssertionError" not in result.stderr.str() - result.stdout.fnmatch_lines("* 1 passed in *") + result.stdout.fnmatch_lines("* 1 passed*") def test_used_with_session_scope(testdir: Any) -> None: @@ -1177,7 +1177,7 @@ def test_used_with_session_scope(testdir: Any) -> None: ) result = testdir.runpytest_subprocess() assert "AssertionError" not in result.stderr.str() - result.stdout.fnmatch_lines("* 1 passed in *") + result.stdout.fnmatch_lines("* 1 passed*") def test_stop_patch(mocker): -- 2.39.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2