2017-11-18 278 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