Skip to content

Commit 27dbd7d

Browse files
@CyberTailorarthurzam
authored andcommitted
fix TestRepoDirCheck::test_null_bytes
Replace a 'utf_16_be'-decodable byte string with another, which is non-decodable. Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
1 parent 3ffbd0e commit 27dbd7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/checks/test_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_ignored_root_dirs(self):
6464
def test_null_bytes(self):
6565
check = self.mk_check()
6666
with open(pjoin(self.repo.location, "foo"), "wb") as f:
67-
f.write(b"foo\x00\xffbar")
67+
f.write(b"foo\x00\xff\xffbar")
6868
r = self.assertReport(check, [])
6969
assert isinstance(r, repo.BinaryFile)
7070
assert r.path == "foo"

0 commit comments

Comments
 (0)