当我运行测试时./manage.py test,无论我发送到标准输出通过print什么都不显示.当测试失败时,我会看到每个失败的测试都有一个"stdout"块,所以我猜Django会捕获它(但是当测试通过时它没有显示).
./manage.py test
print
python testing django debugging stdout
debugging ×1
django ×1
python ×1
stdout ×1
testing ×1