From e13b9212537e3cdcf586e946aff731aaf051b21a Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 25 Mar 2016 10:43:35 +0100 Subject: test_fsobject: fix syntax error --- tests/ranger/container/test_fsobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/ranger/container/test_fsobject.py b/tests/ranger/container/test_fsobject.py index 4e521806..3ea52d6f 100644 --- a/tests/ranger/container/test_fsobject.py +++ b/tests/ranger/container/test_fsobject.py @@ -21,7 +21,7 @@ def create_filesystem_object(path): def test_basename_natural1(): """Test filenames without extensions.""" fsos = [create_filesystem_object(path) - for path in "hello", "hello1", "hello2"] + for path in ("hello", "hello1", "hello2")] assert(fsos == sorted(fsos[::-1], key=operator.attrgetter("basename_natural"))) assert(fsos == sorted(fsos[::-1], key=operator.attrgetter("basename_natural_lower"))) @@ -29,6 +29,6 @@ def test_basename_natural1(): def test_basename_natural2(): """Test filenames with extensions.""" fsos = [create_filesystem_object(path) - for path in "hello", "hello.txt", "hello1.txt", "hello2.txt"] + for path in ("hello", "hello.txt", "hello1.txt", "hello2.txt")] assert(fsos == sorted(fsos[::-1], key=operator.attrgetter("basename_natural"))) assert(fsos == sorted(fsos[::-1], key=operator.attrgetter("basename_natural_lower"))) -- cgit 1.4.1-2-gfad0