1 Star 0 Fork 6

ZoeDong/python-django

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
b61f44c339830ea53663415f00cbd17e2fd5aa43.patch 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
From b61f44c339830ea53663415f00cbd17e2fd5aa43 Mon Sep 17 00:00:00 2001
From: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Date: Thu, 2 Sep 2021 10:56:56 +0200
Subject: [PATCH] [3.2.x] Fixed #33082 -- Fixed
CommandTests.test_subparser_invalid_option on Python 3.9.7+.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Thanks Michał Górny for the report.
Backport of 50ed545e2fa02c51e0d1559b83624f256e4b499b from main.
---
tests/user_commands/tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/user_commands/tests.py b/tests/user_commands/tests.py
index 9262e2717acb8..9e242bc8d5ab9 100644
--- a/tests/user_commands/tests.py
+++ b/tests/user_commands/tests.py
@@ -334,7 +334,7 @@ def test_subparser_dest_required_args(self):
self.assertIn('bar', out.getvalue())
def test_subparser_invalid_option(self):
- msg = "Error: invalid choice: 'test' (choose from 'foo')"
+ msg = "invalid choice: 'test' (choose from 'foo')"
with self.assertRaisesMessage(CommandError, msg):
management.call_command('subparser', 'test', 12)
if PY37:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ZoeDong/python-django.git
git@gitee.com:ZoeDong/python-django.git
ZoeDong
python-django
python-django
master

搜索帮助