From b11507eda86bd49d4801df6c6f2b5700f15087d7 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 3 Nov 2020 07:14:02 +0100 Subject: Adding upstream version 1.5.7. Signed-off-by: Daniel Baumann --- tests/identify_test.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/identify_test.py b/tests/identify_test.py index a80c401..8e00f60 100644 --- a/tests/identify_test.py +++ b/tests/identify_test.py @@ -105,7 +105,7 @@ def test_tags_from_path_plist_text(tmpdir): x = tmpdir.join('t.plist') x.write( '\n' - '\n' + '\n' # noqa: E501 '\n' '\n' '\tLast Login Name\n' @@ -179,12 +179,14 @@ def test_tags_from_interpreter(interpreter, expected): (b'', True), ('éóñəå ⊂(◉‿◉)つ(ノ≥∇≤)ノ'.encode('utf8'), True), (r'¯\_(ツ)_/¯'.encode('utf8'), True), - ('♪┏(・o・)┛♪┗ ( ・o・) ┓♪┏ ( ) ┛♪┗ (・o・ ) ┓♪┏(・o・)┛♪'.encode('utf8'), True), + ('♪┏(・o・)┛♪┗ ( ・o・) ┓♪┏ ( ) ┛♪┗ (・o・ ) ┓♪'.encode('utf8'), True), ('éóñå'.encode('latin1'), True), (b'hello world\x00', False), - (b'\x7f\x45\x4c\x46\x02\x01\x01', False), # first few bytes of /bin/bash - (b'\x43\x92\xd9\x0f\xaf\x32\x2c', False), # some /dev/urandom output + # first few bytes of /bin/bash + (b'\x7f\x45\x4c\x46\x02\x01\x01', False), + # some /dev/urandom output + (b'\x43\x92\xd9\x0f\xaf\x32\x2c', False), ), ) def test_is_text(data, expected): -- cgit v1.2.3