Skip to content

Commit 291a924

Browse files
committed
fix: tests
1 parent f23620d commit 291a924

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

mypyc/test-data/fixtures/ir.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ def __getitem__(self, i: slice) -> bytes: ...
174174
def join(self, x: Iterable[object]) -> bytes: ...
175175
def decode(self, encoding: str=..., errors: str=...) -> str: ...
176176
def __iter__(self) -> Iterator[int]: ...
177+
def ljust(self, width: int, fillchar: bytes) -> bytes: ...
178+
def rjust(self, width: int, fillchar: bytes) -> bytes: ...
177179

178180
class bytearray:
179181
@overload

mypyc/test-data/run-bytes.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ class bytes:
376376
pass
377377

378378
[case testBytesRjustLjust]
379+
from testutil import assertRaises
380+
379381
def rjust_bytes(b: bytes, width: int, fill: bytes = b' ') -> bytes:
380382
return b.rjust(width, fill)
381383

0 commit comments

Comments
 (0)