diff options
author | Erlend E. Aasland <erlend@python.org> | 2023-08-04 05:28:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 05:28:25 (GMT) |
commit | a443c310ac87f214164cb1e3f8af3f799668c867 (patch) | |
tree | 7216629cd0b28b0580141801a51a34df5a602046 /Lib/test/test_clinic.py | |
parent | e52e87c349feeee77445205829bfc8db9fe4b80e (diff) | |
download | cpython-a443c310ac87f214164cb1e3f8af3f799668c867.zip cpython-a443c310ac87f214164cb1e3f8af3f799668c867.tar.gz cpython-a443c310ac87f214164cb1e3f8af3f799668c867.tar.bz2 |
gh-107609: Fix duplicate module check in Argument Clinic (#107610)
Also remove duplicate module def from _testcapi.
Diffstat (limited to 'Lib/test/test_clinic.py')
-rw-r--r-- | Lib/test/test_clinic.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_clinic.py b/Lib/test/test_clinic.py index 3aa4163..59669d6 100644 --- a/Lib/test/test_clinic.py +++ b/Lib/test/test_clinic.py @@ -416,6 +416,16 @@ class ClinicWholeFileTest(TestCase): """ self.expect_failure(block, err, lineno=8) + def test_module_already_got_one(self): + err = "Already defined module 'm'!" + block = """ + /*[clinic input] + module m + module m + [clinic start generated code]*/ + """ + self.expect_failure(block, err, lineno=3) + class ClinicGroupPermuterTest(TestCase): def _test(self, l, m, r, output): |