Py.测试搜索

2024-09-28 21:56:07 发布

您现在位置:Python中文网/ 问答频道 /正文

此命令不会结束,因为它在非常深的大数据目录中搜索:

py.test --full-trace -k my_test_name

stat("/home/conftest.py", 0x7ffff5e6f1a0) = -1 ENOENT (No such file or directory)
stat("/home/foo3_bar_p/conftest.py", 0x7ffff5e6f1a0) = -1 ENOENT (No such file or directory)
stat("/home/foo3_bar_p/archiv/conftest.py", 0x7ffff5e6f1a0) = -1 ENOENT (No such file or directory)
stat("/home/foo3_bar_p/archiv/specialworkflow/conftest.py", 0x7ffff5e6f1a0) = -1 ENOENT (No such file or directory)
stat("/home/foo3_bar_p/archiv/specialworkflow/239/conftest.py", 0x7ffff5e6f1a0) = -1 ENOENT (No such file or directory)
stat("/home/foo3_bar_p/archiv/specialworkflow/239/57x/conftest.py", 0x7ffff5e6f1a0) = -1 ENOENT (No such file or directory)
stat("/home/foo3_bar_p/archiv/specialworkflow/239/75x", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
stat("/home/foo3_bar_p/archiv/specialworkflow/239/75x", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0

^{中没有__init__.py文件。为什么py test扫描这个大目录?在


Tags: ornopyhomebardirectorystatfile