8000 gh-106016: Support customizing of module attributes access with __setattr__/__delattr__ (PEP 726) by skirpichev · Pull Request #108261 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-106016: Support customizing of module attributes access with __setattr__/__delattr__ (PEP 726) #108261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 21 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update Lib/test/test_module/__init__.py
  • Loading branch information
skirpichev authored Aug 24, 2023
< 8000 /batch-deferred-content>
commit 49c82c5600f9bbdb09afa6143d0a1f05356b9730
1 change: 1 addition & 0 deletions Lib/test/test_module/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def test_module_delattr(self):
del gda.bar
with self.assertRaises(AttributeError):
gda.bar
del sys.modules['test.test_module.good_delattr']

def test_module_delattr_errors(self):
import test.test_module.bad_delattr as bda
Expand Down
0