Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Oct 4, 2024
1 parent 7ae8eb5 commit 5de4f80
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/test_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# SPDX-FileCopyrightText: 2021 Taneli Hukkinen
# Licensed to PSF under a Contributor Agreement.

import io
import unittest

from . import tomllib
Expand Down Expand Up @@ -56,11 +55,3 @@ def list_returner(s: str) -> list:
self.assertEqual(
str(exc_info.exception), "parse_float must not return dicts or lists"
)

def test_text_mode_error(self):
with self.assertRaises(TypeError) as exc_info:
tomllib.load(io.StringIO()) # type: ignore[arg-type]
self.assertEqual(
str(exc_info.exception),
"File must be opened in binary mode, e.g. use `open('foo.toml', 'rb')`",
)

0 comments on commit 5de4f80

Please sign in to comment.