pyro-ppl/pyro

Enable warnings in tests/test_examples.py

Open

#2,201 opened on Dec 3, 2019

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (981 forks)batch import
help wantedwarnings & errors

Repository metrics

Stars
 (8,211 stars)
PR merge metrics
 (Avg merge 10d 19h) (1 merged PR in 30d)

Description

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.

Contributor guide