Skip to content

Commit

Permalink
Removed test for unexpected EOF while parsing string
Browse files Browse the repository at this point in the history
The test for an EOF before the end of a string is being
moved to the toml test suite
  • Loading branch information
mraspberry committed May 12, 2020
1 parent 09116c2 commit ef24830
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,3 @@ def test_comment_preserve_decoder_encoder():
encoder=toml.TomlPreserveCommentEncoder())

assert len(s) == len(test_str) and sorted(test_str) == sorted(s)


@pytest.mark.parametrize('test_val', [
'opt = "unterminated double\n',
"opt = 'unterminated single\n",
"opt = '''\nunterminated\nraw multiline\n",
'opt = """\nunterminated\nmultiline\n'])
def test_unterminated_string_eof(test_val):
with pytest.raises(toml.TomlDecodeError):
toml.loads(test_val)

0 comments on commit ef24830

Please sign in to comment.