[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
3aef0b9de6
commit
9d2ffe207b
|
@ -56,7 +56,7 @@ def test_terminalwriter_not_unicode() -> None:
|
||||||
file = io.TextIOWrapper(buffer, encoding="cp1252")
|
file = io.TextIOWrapper(buffer, encoding="cp1252")
|
||||||
tw = terminalwriter.TerminalWriter(file)
|
tw = terminalwriter.TerminalWriter(file)
|
||||||
tw.write("hello 🌀 wôrld אבג", flush=True)
|
tw.write("hello 🌀 wôrld אבג", flush=True)
|
||||||
assert buffer.getvalue() == br"hello \U0001f300 w\xf4rld \u05d0\u05d1\u05d2"
|
assert buffer.getvalue() == rb"hello \U0001f300 w\xf4rld \u05d0\u05d1\u05d2"
|
||||||
|
|
||||||
|
|
||||||
win32 = int(sys.platform == "win32")
|
win32 = int(sys.platform == "win32")
|
||||||
|
|
|
@ -771,7 +771,7 @@ class TestApprox:
|
||||||
def test_expected_value_type_error(self, x, name):
|
def test_expected_value_type_error(self, x, name):
|
||||||
with pytest.raises(
|
with pytest.raises(
|
||||||
TypeError,
|
TypeError,
|
||||||
match=fr"pytest.approx\(\) does not support nested {name}:",
|
match=rf"pytest.approx\(\) does not support nested {name}:",
|
||||||
):
|
):
|
||||||
approx(x)
|
approx(x)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue