Skip to content

Commit a186cf1

Browse files
committed
added instructions to test
1 parent 104b4dc commit a186cf1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Pytorch-Lightning Tests
22

33
## Running tests
4+
The automatic travis tests ONLY run CPU-based tests. Although these cover most of the use cases,
5+
run on a 2-GPU machine to validate the full test-suite.
6+
47

58
To run all tests do the following:
69
```bash

tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def test_cpu_model_with_amp():
163163

164164
model, hparams = get_model()
165165

166-
with pytest.raises(ModuleNotFoundError):
166+
with pytest.raises((MisconfigurationException, ModuleNotFoundError)):
167167
run_gpu_model_test(trainer_options, model, hparams, on_gpu=False)
168168

169169

0 commit comments

Comments
 (0)