From d5f5306470e0008254367b83f4c69c822a68093c Mon Sep 17 00:00:00 2001 From: "oleg.hoefling" Date: Sat, 20 Aug 2022 14:55:45 +0200 Subject: [PATCH] drop unused imports in stub generation test Signed-off-by: oleg.hoefling --- tests/test_type_stubs.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/test_type_stubs.py b/tests/test_type_stubs.py index 2312c4d9..af7d53be 100644 --- a/tests/test_type_stubs.py +++ b/tests/test_type_stubs.py @@ -1,8 +1,6 @@ """Test type stubs for correctness where possible.""" import os -import pathlib -import sys import pytest @@ -50,7 +48,6 @@ def process_constant(name): names = list(sorted(name for name in dir(xmlsec.constants) if not name.startswith('__'))) lines = [process_constant(name) for name in names] - pathlib.Path('constants_stub_gen.pyi').write_text(constants_stub_header + os.linesep.join(lines)) return constants_stub_header + os.linesep.join(lines)