Skip to content

Commit d79ef20

Browse files
committed
fix: tests
1 parent 26e8a53 commit d79ef20

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
@@ -173,6 +173,8 @@ def __getitem__(self, i: slice) -> bytes: ...
173173
def join(self, x: Iterable[object]) -> bytes: ...
174174
def decode(self, x: str=..., y: str=...) -> str: ...
175175
def __iter__(self) -> Iterator[int]: ...
176+
def ljust(self, width: int, fillchar: bytes) -> bytes: ...
177+
def rjust(self, width: int, fillchar: bytes) -> bytes: ...
176178

177179
class bytearray:
178180
@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)