MCPcopy Create free account
hub / github.com/tensorflow/datasets / test_nonbytes

Method test_nonbytes

tensorflow_datasets/core/shuffle_test.py:233–238  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

231 )
232
233 def test_nonbytes(self):
234 shuffler = shuffle.Shuffler(self.get_temp_dir(), 'split1')
235 with self.assertRaisesWithPredicateMatch(AssertionError, 'Only bytes'):
236 shuffler.add(1, 'a')
237 with self.assertRaisesWithPredicateMatch(AssertionError, 'Only bytes'):
238 shuffler.add(1, 123)
239
240 def test_duplicate_key(self):
241 shuffler = shuffle.Shuffler(self.get_temp_dir(), 'split1')

Callers

nothing calls this directly

Calls 2

addMethod · 0.95

Tested by

no test coverage detected