transformers/templates/adding_a_new_model/tests
Aymeric Augustin 35401fe50f Remove dependency on pytest for running tests (#2055)
* Switch to plain unittest for skipping slow tests.

Add a RUN_SLOW environment variable for running them.

* Switch to plain unittest for PyTorch dependency.

* Switch to plain unittest for TensorFlow dependency.

* Avoid leaking open files in the test suite.

This prevents spurious warnings when running tests.

* Fix unicode warning on Python 2 when running tests.

The warning was:

    UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal

* Support running PyTorch tests on a GPU.

Reverts 27e015bd.

* Tests no longer require pytest.

* Make tests pass on cuda
2019-12-06 13:57:38 -05:00
..
modeling_tf_xxx_test.py Remove dependency on pytest for running tests (#2055) 2019-12-06 13:57:38 -05:00
modeling_xxx_test.py Remove dependency on pytest for running tests (#2055) 2019-12-06 13:57:38 -05:00
tokenization_xxx_test.py adding templates 2019-10-30 11:31:56 +01:00