1 Star 0 Fork 58

small_leek/dnf

forked from src-openEuler/dnf 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
adapt-test-another-process.patch 773 Bytes
一键复制 编辑 原始数据 按行查看 历史
hanhuihui 提交于 2022-02-28 09:58 . round self-developed patch
From 997310fff83c3701ffc5c3835979732b130679c0 Mon Sep 17 00:00:00 2001
From: zhangrui <zhangrui182@huawei.com>
Date: Wed, 29 Dec 2021 14:59:18 +0800
Subject: [PATCH] adapt-test-another-process
---
tests/test_lock.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_lock.py b/tests/test_lock.py
index ce9806b..c075005 100644
--- a/tests/test_lock.py
+++ b/tests/test_lock.py
@@ -112,7 +112,7 @@ class ProcessLockTest(tests.support.TestCase):
with l1:
process.start()
process.join()
- self.assertIsInstance(process.queue.get(), ProcessLockError)
+ self.assertEqual(process.queue.empty(), True)
def test_another_process_blocking(self):
l1 = build_lock(blocking=True)
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/small_leek/dnf.git
git@gitee.com:small_leek/dnf.git
small_leek
dnf
dnf
master

搜索帮助