summaryrefslogtreecommitdiff
path: root/test/t/test_explodepkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/test_explodepkg.py')
-rw-r--r--test/t/test_explodepkg.py17
1 files changed, 11 insertions, 6 deletions
diff --git a/test/t/test_explodepkg.py b/test/t/test_explodepkg.py
index 29463dfd..940fec80 100644
--- a/test/t/test_explodepkg.py
+++ b/test/t/test_explodepkg.py
@@ -8,11 +8,16 @@ class TestExplodepkg:
@pytest.mark.complete("explodepkg ", cwd="slackware/home")
def test_1(self, completion):
expected = sorted(
- x
- for x in os.listdir("slackware/home")
- if os.path.isdir("./%s" % x)
- or (
- os.path.isfile("./%s" % x) and fnmatch.fnmatch(x, "*.t[bglx]z")
- )
+ [
+ "%s/" % x
+ for x in os.listdir("slackware/home")
+ if os.path.isdir("./slackware/home/%s" % x)
+ ]
+ + [
+ x
+ for x in os.listdir("slackware/home")
+ if os.path.isfile("./slackware/home/%s" % x)
+ and fnmatch.fnmatch(x, "*.t[bglx]z")
+ ]
)
assert completion == expected