summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2025-05-21 22:14:05 +0200
committerHelmut Grohne <helmut@subdivi.de>2025-05-21 22:14:05 +0200
commit29ef6690e5ae0433821995c89ae682ad0fa7f80d (patch)
tree0ea405830653f553beee3ca19e505e4ffaade6c8 /tests
parent8185184d75befdaf1f780d8f1e1dd65d1dc1afa4 (diff)
downloadpython-linuxnamespaces-29ef6690e5ae0433821995c89ae682ad0fa7f80d.tar.gz
test_atlocation.py: mypy/1.15 now understands those literals
Diffstat (limited to 'tests')
-rw-r--r--tests/test_atlocation.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/test_atlocation.py b/tests/test_atlocation.py
index 5d7286a..b107975 100644
--- a/tests/test_atlocation.py
+++ b/tests/test_atlocation.py
@@ -95,13 +95,8 @@ class AtLocationTest(unittest.TestCase):
if filetype == "symlink" and loctype != "emptypath":
follow_symlinks_values.append(False)
for follow_symlinks in follow_symlinks_values:
- # Mypy fails to see that loctype and filetype really are
- # literals rather than arbitrary strings.
atlocctx = self.create(
- loctype, # type: ignore[arg-type]
- filetype, # type: ignore[arg-type]
- "X",
- follow_symlinks,
+ loctype, filetype, "X", follow_symlinks
)
yield (filetype, atlocctx)