summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zoneinfo
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-10-07 18:06:23 (GMT)
committerGitHub <noreply@github.com>2022-10-07 18:06:23 (GMT)
commit24a664589448d99a62386d5afa180cfb52733a7e (patch)
treed222c187c9a8dcef1fd5c379036accdf6e7808f2 /Lib/test/test_zoneinfo
parent002252c4ade6a5aeb7a397776dbe3c1de0740e84 (diff)
downloadcpython-24a664589448d99a62386d5afa180cfb52733a7e.zip
cpython-24a664589448d99a62386d5afa180cfb52733a7e.tar.gz
cpython-24a664589448d99a62386d5afa180cfb52733a7e.tar.bz2
gh-97955: Migrate `zoneinfo` to Argument Clinic (#97958)
Diffstat (limited to 'Lib/test/test_zoneinfo')
-rw-r--r--Lib/test/test_zoneinfo/test_zoneinfo.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/test/test_zoneinfo/test_zoneinfo.py b/Lib/test/test_zoneinfo/test_zoneinfo.py
index a2172f3..fd0e3bc 100644
--- a/Lib/test/test_zoneinfo/test_zoneinfo.py
+++ b/Lib/test/test_zoneinfo/test_zoneinfo.py
@@ -404,6 +404,19 @@ class ZoneInfoTest(TzPathUserMixin, ZoneInfoTestBase):
class CZoneInfoTest(ZoneInfoTest):
module = c_zoneinfo
+ def test_signatures(self):
+ """Ensure that C module has valid method signatures."""
+ import inspect
+
+ must_have_signatures = (
+ self.klass.clear_cache,
+ self.klass.no_cache,
+ self.klass.from_file,
+ )
+ for method in must_have_signatures:
+ with self.subTest(method=method):
+ inspect.Signature.from_callable(method)
+
def test_fold_mutate(self):
"""Test that fold isn't mutated when no change is necessary.