MCPcopy Index your code
hub / github.com/python/cpython / test_finalize_dict_arguments

Method test_finalize_dict_arguments

Lib/test/test_zstd.py:1351–1362  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1349 train_dict(SAMPLES, 0)
1350
1351 def test_finalize_dict_arguments(self):
1352 with self.assertRaises(TypeError):
1353 finalize_dict({1:2}, (b'aaa', b'bbb'), 100*_1K, 2)
1354
1355 with self.assertRaises(ValueError):
1356 finalize_dict(TRAINED_DICT, [], 100*_1K, 2)
1357
1358 with self.assertRaises(ValueError):
1359 finalize_dict(TRAINED_DICT, SAMPLES, -100, 2)
1360
1361 with self.assertRaises(ValueError):
1362 finalize_dict(TRAINED_DICT, SAMPLES, 0, 2)
1363
1364 def test_train_dict_c(self):
1365 # argument wrong type

Callers

nothing calls this directly

Calls 2

finalize_dictFunction · 0.90
assertRaisesMethod · 0.45

Tested by

no test coverage detected