Skip to content

Commit

Permalink
don't test remote paths if windows
Browse files Browse the repository at this point in the history
  • Loading branch information
f4hy committed Jul 6, 2020
1 parent 817dd3f commit d2a4da2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/trainer/test_trainer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import glob
import math
import os
import platform
import pickle
import sys
import types
Expand Down Expand Up @@ -968,7 +969,10 @@ def aws_credentials():
os.environ['AWS_SESSION_TOKEN'] = 'testing'


@pytest.mark.skipif(version.parse(tensorboard.__version__) < version.parse('2.0'), reason="remote paths require tensorboard>=2.0")
@pytest.mark.skipif(platform.system() == "Windows",
reason="Saving to remote paths is not supported on Windows")
@pytest.mark.skipif(version.parse(tensorboard.__version__) < version.parse('2.0'),
reason="remote paths require tensorboard>=2.0")
def test_trainer_s3_path(aws_credentials):
model = EvalModelTemplate()
with mock_s3():
Expand Down

0 comments on commit d2a4da2

Please sign in to comment.