Skip to content

Commit

Permalink
Merge pull request #8607 from kmaehashi/fix-broken-cudnn-skip
Browse files Browse the repository at this point in the history
Fix broken `skip` condition
  • Loading branch information
emcastillo committed Jun 10, 2021
2 parents 2584328 + eb6593e commit 9893696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/chainer_tests/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def test_valid_case_combination(self):
self.assertFalse(chainer.should_use_cudnn('==always'))
self.assertFalse(chainer.should_use_cudnn('>=auto'))

@unittest.skip(not cuda.cudnn_enabled)
@unittest.skipIf(cuda.cudnn_enabled, 'cudnn unavailable')
def test_no_cudnn_available(self):
with chainer.using_config('use_cudnn', 'always'):
self.assertFalse(chainer.should_use_cudnn('==always'))
Expand Down

0 comments on commit 9893696

Please sign in to comment.