Skip to content

Commit

Permalink
tmp changes in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitgr7 committed Aug 2, 2020
1 parent d71306c commit d0f0f32
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/trainer/test_dataloaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def test_train_inf_dataloader_error(tmpdir):

trainer = Trainer(default_root_dir=tmpdir, max_epochs=1, val_check_interval=0.5)

with pytest.raises(MisconfigurationException, match='infinite DataLoader'):
with pytest.raises(MisconfigurationException, match='not implement `__len__`'):
trainer.fit(model)


Expand All @@ -446,7 +446,7 @@ def test_val_inf_dataloader_error(tmpdir):

trainer = Trainer(default_root_dir=tmpdir, max_epochs=1, limit_val_batches=0.5)

with pytest.raises(MisconfigurationException, match='infinite DataLoader'):
with pytest.raises(MisconfigurationException, match='not implement `__len__`'):
trainer.fit(model)


Expand All @@ -457,7 +457,7 @@ def test_test_inf_dataloader_error(tmpdir):

trainer = Trainer(default_root_dir=tmpdir, max_epochs=1, limit_test_batches=0.5)

with pytest.raises(MisconfigurationException, match='infinite DataLoader'):
with pytest.raises(MisconfigurationException, match='not implement `__len__`'):
trainer.test(model)


Expand Down Expand Up @@ -737,7 +737,7 @@ def test_train_dataloader_not_implemented_error_failed(tmpdir):

trainer = Trainer(default_root_dir=tmpdir, max_steps=5, max_epochs=1, val_check_interval=0.5)

with pytest.raises(MisconfigurationException, match='infinite DataLoader'):
with pytest.raises(MisconfigurationException, match='not implement `__len__`'):
trainer.fit(model)


Expand All @@ -748,7 +748,7 @@ def test_val_dataloader_not_implemented_error_failed(tmpdir):

trainer = Trainer(default_root_dir=tmpdir, max_steps=5, max_epochs=1, limit_val_batches=0.5)

with pytest.raises(MisconfigurationException, match='infinite DataLoader'):
with pytest.raises(MisconfigurationException, match='not implement `__len__`'):
trainer.fit(model)


Expand All @@ -759,5 +759,5 @@ def test_test_dataloader_not_implemented_error_failed(tmpdir):

trainer = Trainer(default_root_dir=tmpdir, max_steps=5, max_epochs=1, limit_test_batches=0.5)

with pytest.raises(MisconfigurationException, match='infinite DataLoader'):
with pytest.raises(MisconfigurationException, match='not implement `__len__`'):
trainer.test(model)

0 comments on commit d0f0f32

Please sign in to comment.