Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ log_cli_level=INFO
#
# Add directory to find the example branding.py (needed by bootloader.py) in ./stubs:
# (Requires pytest >= 7.0.0):
pythonpath=stubs
pythonpath=stubs
2 changes: 1 addition & 1 deletion pytype_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def run_pytype(command: List[str], branch_url: str, errorlog: TextIO, results):
ok = True
while ok:
for key, _ in sel.select():
line = key.fileobj.readline() # type: ignore
line = key.fileobj.readline() # type: ignore[union-attr]
if not line:
ok = False
break
Expand Down
5 changes: 3 additions & 2 deletions tests/test_bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@ def _test_cfg(self, cfg):
universal_newlines=True)

assert proc.stdout is not None # for pyright, to ensure it is valid
# check the diff output, working around trailing whitespace issues
self.assertEqual(proc.stdout.read(), '''5a6,13
> if [ -s $prefix/grubenv ]; then
> load_env
> fi
>
> ''' + '''
> if [ -n "$override_entry" ]; then
> set default=$override_entry
> fi
>
> ''' + '''
''')
proc.stdout.close()
proc.wait()
Expand Down
Loading