Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapter06运行main.py为什么会得到一个pytest in main.py的运行? #221

Open
LawsonAbs opened this issue Sep 10, 2020 · 3 comments

Comments

@LawsonAbs
Copy link

如题,很疑问为什么会进入pytest,而不是普通的执行函数?

@LawsonAbs LawsonAbs changed the title chapter07运行main.py为什么会得到一个pytest in main.py的运行? chapter06运行main.py为什么会得到一个pytest in main.py的运行? Sep 10, 2020
@LawsonAbs
Copy link
Author

很好奇,如果不输入参数(如train),那么就会直接进入test suite,这是为什么呢?

@prayae
Copy link

prayae commented Oct 10, 2020

哥们 我运行后 为什么显示没有模块pytest 你知道吗 能加个联系方式吗想请教您一些问题

@LawsonAbs
Copy link
Author

哥们 我运行后 为什么显示没有模块pytest 你知道吗 能加个联系方式吗想请教您一些问题

微信ID:lawsonabs
这个pytest是测试模块,这个程序里面用不到。直接在命令行运行代码比较好。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants