pytest的bug

在pytest框架学习中无意发现一个bug, 在写case时候,如果有两个case.py文件,第一个test_log.py,第二个test_show.py文件,那么如果我使用了多行注释把test_show.py文件的代码case注释掉了,我在执行test_log.py模块的代码的时候,会多执行一遍,但是如果使用的是单行注释,那么就执行正常,不会多执行一遍。

图上的是多行注释的case模块,在执行运行模块的时候,多行注释的模块会影响正在执行的代码。有几个多行注释的模块,执行的次数就会加一。

相关推荐
我星期八休息10 小时前
软件测试—从认识到BUG
考研·安全·bug
2601_962387821 天前
web自动化测试实战教程【selenium/unittest/pytest】【共193课
selenium·pytest·devops·web自动化测试·unittest
weixin_440730501 天前
使用pytest中方法控制执行步骤(test_begin.py、test_end.py,@pytest.mark.run(order=1))
开发语言·python·pytest
2601_962297251 天前
Python、Pytest、Allure、Selenium和Jenkins实现自动化测试集成实例
python·selenium·jenkins·pytest·allure
hulihutu441 天前
拒绝延期、bug、货不对板:2026 管理系统定制开发落地保障手册
github·bug·鸿蒙系统·数据库管理员
Rain5091 天前
谁动了我的 URL?——记一次微前端“灵异 Bug“的排查实录
前端·vue.js·人工智能·前端框架·bug·ai编程
百变梦仔1 天前
Codex 处理接口异常类 bug 时,我会让调试 Skill 先接住错误信息
bug
2601_962077602 天前
从零搭建Python接口自动化测试框架:pytest+requests实战指南
python·pytest·接口自动化·requests·框架搭建
weixin_440730502 天前
pytest结合allure生成html测试报告(step、story、severity、screenshot)
前端·html·pytest·allure报告
拜托多多指教2 天前
【Pytest框架学习】分层架构
python·pytest