Skip to content

Commit

Permalink
fix pytest issue (#1764)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffra authored Feb 11, 2022
1 parent 97f8a9e commit 56eac38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test_fp16.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
_amp_available = True
except ImportError:
_amp_available = False
amp_available = pytest.mark.skip(_amp_available, reason="apex/amp is not installed")
amp_available = pytest.mark.skipif(not _amp_available,
reason="apex/amp is not installed")


def test_lamb_fp32_grad_clip(tmpdir):
Expand Down

0 comments on commit 56eac38

Please sign in to comment.