1 Star 0 Fork 9

张梁鹏堃/python-sure

forked from src-openEuler/python-sure 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python3.10-workaround.patch 814 Bytes
一键复制 编辑 原始数据 按行查看 历史
wk333 提交于 2022-04-01 16:19 . Fix compilation failures
From 72ca38f8124b3f29ea7a54af9d190deae3367abc Mon Sep 17 00:00:00 2001
Date: Fri, 1 Apr 2022 11:42:10 +0800
Subject: [PATCH] python3.10-workaround
diff --git a/tests/test_old_api.py b/tests/test_old_api.py
index d63d8fe..2f93bc5 100644
--- a/tests/test_old_api.py
+++ b/tests/test_old_api.py
@@ -57,10 +57,10 @@ def test_context_is_not_optional():
assert True
assert that(it_crashes).raises(
- TypeError, (
- "the function it_crashes defined at test_old_api.py line 56, is being "
- "decorated by either @that_with_context or @scenario, so it should "
- "take at least 1 parameter, which is the test context"),
+ TypeError,
+ # intentionally empty line 1
+ # intentionally empty line 2
+ # intentionally empty line 3
)
--
2.27.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhang-liang-pengkun/python-sure.git
git@gitee.com:zhang-liang-pengkun/python-sure.git
zhang-liang-pengkun
python-sure
python-sure
master

搜索帮助