Skip to content
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

Adjust tests for Python 3.13 #104

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
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
9 changes: 9 additions & 0 deletions tests/test_munch.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,15 @@ def test_reserved_attributes(attrname):
assert attr == 'munch'
elif attrname == '__dict__':
assert attr == {}
elif attrname == '__static_attributes__':
# Python 3.13: added __static_attributes__ attribute, populated by the
# compiler, containing a tuple of names of attributes of this class
# which are accessed through self.X from any function in its body.
assert isinstance(attr, tuple)
elif attrname == '__firstlineno__':
# Python 3.13: added __firstlineno__ attribute, populated by the
# compiler, containing the line number of the first line of the class definition
assert isinstance(attr, int)
else:
assert callable(attr)

Expand Down