pyro-ppl/pyro

Enable warnings in tests/test_examples.py

Ouverte

#2 201 ouverte le 3 déc. 2019

 (1 commentaire) (0 réaction) (0 personne assignée)Python (981 forks)batch import
help wantedwarnings & errors

Métriques du dépôt

Stars
 (8 211 étoiles)
Métriques de merge PR
 (Merge moyen 10j 19h) (1 PR mergée en 30 j)

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.

Guide contributeur