gh-121300: Add replace to copy.__all__ (#121302)

This commit is contained in:
Max Muoto 2024-07-03 10:03:56 -05:00 committed by GitHub
parent ca2e876500
commit 7c66906802
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View file

@ -972,6 +972,10 @@ class TestReplace(unittest.TestCase):
copy.replace(c, x=1, error=2)
class MiscTestCase(unittest.TestCase):
def test__all__(self):
support.check__all__(self, copy, not_exported={"dispatch_table", "error"})
def global_foo(x, y): return x+y