diff --git a/tests/test_parse.py b/tests/test_parse.py index ac11651..5c22076 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -142,8 +142,8 @@ # Test that we can make notes using BeginNote and EndNote syntax. @given(text(), sampled_from(lexer_whitespace), sampled_from(lexer_whitespace)) def test_lexer_note(text, space1, space2): - text_tokens = split_by(text, lexer_whitespace) - assume("BeginNote" not in text_tokens and "EndNote" not in text_tokens) + note_tokens = split_by(text, lexer_whitespace) + assume("BeginNote" not in note_tokens and "EndNote" not in note_tokens) code = "BeginNote" + space1 + text + space2 + "EndNote" tokens = safe_tokenize(code, "") assert tokens[0].type == "EOF"