Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 1, 2021
1 parent 7b11bd3 commit fd737d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/test_builtin_casters.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ def test_string_view(capture):
"""
)

assert m.string_view_bytes() == b'abc \x80\x80 def'
assert m.string_view_str() == 'abc ‽ def'
assert m.string_view_from_bytes('abc ‽ def'.encode()) == 'abc ‽ def'
assert m.string_view_memoryview() == 'Have some 🎂'.encode()
assert m.string_view_bytes() == b"abc \x80\x80 def"
assert m.string_view_str() == "abc ‽ def"
assert m.string_view_from_bytes("abc ‽ def".encode()) == "abc ‽ def"
assert m.string_view_memoryview() == "Have some 🎂".encode()
if hasattr(m, "has_u8string"):
assert m.string_view8_str() == 'abc ‽ def'
assert m.string_view8_str() == "abc ‽ def"


def test_integer_casting():
Expand Down

0 comments on commit fd737d5

Please sign in to comment.