mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
gh-97955: Migrate zoneinfo to Argument Clinic (#97958)
This commit is contained in:
parent
002252c4ad
commit
24a6645894
6 changed files with 262 additions and 40 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue