pyro-ppl/pyro

Enable warnings in tests/test_examples.py

开放

#2,201 创建于 2019年12月3日

 (1 条评论) (0 个反应) (0 位负责人)Python (981 个派生)batch import
help wantedwarnings & errors

仓库指标

星标
 (8,211 个星标)
PR 合并指标
 (平均合并 10天 19小时) (30 天内合并 1 个 PR)

描述

I just noticed that our usual pytest warnings filters (-Werror with a few exceptions) do not apply to the eamples/*.py when run by subprocess.check_call(), leading to some warnings raised by examples.

I tried sketching a possible solution in the example-warnings branch, but it appears difficult to specify exact warnings, and there are some possibly unrelated issues with torch_shm_manager and with the jit raising SystemError: ... returned a result with an error reset.

贡献者指南