pytest的bug

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

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

相关推荐
测试199815 小时前
一个只能通过压测发现Bug
自动化测试·软件测试·python·selenium·测试工具·bug·压力测试
m0_6324825019 小时前
Jenkins + Pytest +allure接口自动化测试配置与操作
jenkins·集成测试·pytest·jenkins配置
李星星BruceL19 小时前
Pytest第三章(参考指南1)
python·自动化·pytest
哎呀呦呵19 小时前
pytest基本使用
python·pytest
Kristen_YXQDN19 小时前
PyCharm 中 pytest 运行 python 测试文件报错:D:\Python_file\.venv\Scripts\python.exe: No module named pytest
运维·开发语言·python·pycharm·pytest
Low--Key19 小时前
pytest框架快速入门
python·自动化·pytest
姜西西_19 小时前
自动化测试框架pytest之fixture
android·java·pytest
测试开发Kevin19 小时前
超级实用!汇总pytest中那些常用的参数
单元测试·pytest
Beaman102419 小时前
pytest框架
python·pytest
狂奔的sherry20 小时前
网卡获取模组ip失败问题解析
bug