MagicStack / MagicStack/uvloop

module search path broken for test_libuv_api.py

未关闭
#530 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Cython
星标
11.9k
派生
616
PR 合并指标
30 天内没有已合并 PR

描述

  • uvloop version: 0.17.0
  • Python version: 3.11
  • Platform: Linux Fedora 37 / rawhide
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: unknown
  • Does uvloop behave differently from vanilla asyncio? How?: unknown

The test fails to find the module cython_helper

Workaround:

sed -i "s:import sys:import sys\nsys.path.append\(os.path.abspath\(os.path.dirname\(__file__\)\)\)\n:" tests/__main__.py

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 tests/main.py 和 test_libuv_api.py 开始,然后复现找不到 cython_helper 的失败。将失败的测试调用与所报告的模块搜索路径 workaround 进行比较。当 test_libuv_api.py 无需该手动 workaround 即可找到 cython_helper 时,就算完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
testing-qa
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。