diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-25 02:59:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-25 02:59:48 +0000 |
commit | 6dba7fe33f3f508033d1192ef4dbf98707f24140 (patch) | |
tree | d84b5b1ebca79975ae2a30f22c91c7964182c223 /tests/test_interpreter.py | |
parent | Adding debian version 0.1.28. (diff) | |
download | debputy-6dba7fe33f3f508033d1192ef4dbf98707f24140.tar.xz debputy-6dba7fe33f3f508033d1192ef4dbf98707f24140.zip |
Merging upstream version 0.1.29.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/test_interpreter.py')
-rw-r--r-- | tests/test_interpreter.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_interpreter.py b/tests/test_interpreter.py index 6cbfd44..154ee4a 100644 --- a/tests/test_interpreter.py +++ b/tests/test_interpreter.py @@ -82,7 +82,7 @@ def test_interpreter_detection( ) -> None: interpreter = extract_shebang_interpreter(raw_shebang) # The `and ...` part is just to get the raw line in the error message - assert interpreter is not None or raw_shebang == b"" + assert interpreter is not None assert interpreter.original_command == original_command assert interpreter.command_full_basename == command_full_basename @@ -147,11 +147,11 @@ def test_interpreter_rewrite(empty_manifest: HighLevelManifest) -> None: foo = fs_root.lookup("usr/bin/foo") foo_sh = fs_root.lookup("usr/bin/foo.sh") - assert foo.is_file + assert foo is not None and foo.is_file with foo.open() as fd: assert fd.read() == "random data" - assert foo_sh.is_file + assert foo_sh is not None and foo_sh.is_file with foo_sh.open() as fd: expected = textwrap.dedent( """\ |