pyro-ppl/pyro

Enable warnings in tests/test_examples.py

Offen

#2.201 geöffnet am 03.12.2019

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Python (981 Forks)batch import
help wantedwarnings & errors

Repository-Metriken

Stars
 (8.211 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 10T 19h) (1 gemergte PR in 30 T)

Beschreibung

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