Fix parser distillation test seed

The test would sometimes fail. Rather than increasing test by increasing
training iterations, use a known-good seed.
This commit is contained in:
Daniël de Kok 2023-12-21 10:06:28 +01:00
parent 7b689bde44
commit 532225b955

View File

@ -405,6 +405,7 @@ def test_is_distillable():
@pytest.mark.slow @pytest.mark.slow
@pytest.mark.parametrize("max_moves", [0, 1, 5, 100]) @pytest.mark.parametrize("max_moves", [0, 1, 5, 100])
def test_distill(max_moves): def test_distill(max_moves):
fix_random_seed(0)
teacher = English() teacher = English()
teacher_parser = teacher.add_pipe("parser") teacher_parser = teacher.add_pipe("parser")
train_examples = [] train_examples = []