2017-11-18 265 views
0

如何抑制打印頭(〜4行)?從pytest打印頭打印

============================= test session starts ============================== 
platform linux -- Python 3.5.3, pytest-3.2.1, py-1.4.34, pluggy-0.4.0 -- /usr/bin/python3 
cachedir: .cache 
rootdir: /sandboxes/beetle, inifile: 
collecting ... collected 1 item 

回答

0

與-q選項將打壓頭(但可能還有其他的信息也一樣)

pytest documentation

+0

運行pytest我早就知道了。但我希望單獨壓制標題。 – lifebalance