如何运行 CPython3.3 自己的回归测试?
python3.3 -m test.regrtest packaging.tests.test_command_install_data
提高ImportError: No module named 'test.packaging'
如何运行 CPython3.3 自己的回归测试?
python3.3 -m test.regrtest packaging.tests.test_command_install_data
提高ImportError: No module named 'test.packaging'
python3 -m test.regrtest
该命令有选项,“python3 -m regrtest --help”显示了广泛的帮助。您可以做的一件事是将特定测试模块的名称添加到命令行,名称应该是“测试”包中的模块。例如,“python3 -m test.regrtest test_socket”在模块“test.test_socket”中运行测试。
您使用的命令行有两个问题:
您尝试运行不在 test 包中但在其他顶级包中的测试
顶级包“打包”不是 Python 3.3(或任何其他 Python 版本)的标准库的一部分