Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的测试部分tox.ini只能在 Windows 上运行。
tox.ini
如何配置 tox 以仅在特定平台上运行测试部分?
Tox 1.8+ 引入了新platform设置。这是来自docs的引用。
platform
一个 testenv 可以定义一个新的platform设置。如果它的值不包含在调用platform.platform()环境获得的字符串中,将被跳过。
platform.platform()