简体   繁体   English

使用 pypy 运行鼻子测试

[英]Running nosetests using pypy

PyPy is compatible with nose , so how can I use that? PyPy 与nose 兼容,那么我该如何使用它呢? I already use:我已经在使用:

nosetests-2.7 ; nosetests3

If you look inside nosetests script (on my PC: /usr/local/bin/nosetests ) it turns out it's a python script with a header like #!/usr/bin/python .如果您查看鼻子测试脚本(在我的 PC 上: /usr/local/bin/nosetests ),就会发现它是一个 python 脚本,其标题类似于#!/usr/bin/python

Therefore, to make sure you run nosetests with a particular interpreter, run:因此,要确保使用特定解释器运行鼻子测试,请运行:

  • python /usr/local/bin/nosetests
  • pypy /usr/local/bin/nosetests

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM