pyro-ppl/pyro

Enable warnings in tests/test_examples.py

Aperta

#2201 aperta il 3 dic 2019

 (1 commento) (0 reazioni) (0 assegnatari)Python (981 fork)batch import
help wantedwarnings & errors

Metriche repository

Star
 (8211 stelle)
Metriche merge PR
 (Merge medio 10g 19h) (1 PR mergiata in 30 g)

Descrizione

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.

Guida contributor