From baed440fa16552ea32bebfea30c389fcadda6d33 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Thu, 15 Jun 2023 02:03:53 -0400 Subject: [PATCH] ingore duplicate code in tests --- tests/test_prompt_tokenizers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_prompt_tokenizers.py b/tests/test_prompt_tokenizers.py index abc746bbf..8d9635c0e 100644 --- a/tests/test_prompt_tokenizers.py +++ b/tests/test_prompt_tokenizers.py @@ -61,6 +61,7 @@ class TestPromptTokenizationStrategies(unittest.TestCase): tests the interface between the user and assistant parts """ prompter = NoSystemPrompter() + # pylint: disable=duplicate-code strat = AlpacaPromptTokenizingStrategy( prompter, self.tokenizer, @@ -80,6 +81,7 @@ class TestPromptTokenizationStrategies(unittest.TestCase): """ tests the interface between the user and assistant parts """ + # pylint: disable=duplicate-code prompter = AlpacaPrompter() strat = AlpacaPromptTokenizingStrategy( prompter,