Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Address review
  • Loading branch information
sobolevn committed May 12, 2024
commit 8550f842e64a9956dd3af8934fa20cd2c14149fe
8 changes: 4 additions & 4 deletions Lib/test/test_builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2145,16 +2145,16 @@ def test_singleton_attribute_access(self):
self.assertIs(type(singleton).__class__, type)

# Missing instance attributes:
with self.assertRaises(AttributeError):
singleton.prop
with self.assertRaises(AttributeError):
singleton.prop = 1
Comment thread
sobolevn marked this conversation as resolved.
with self.assertRaises(AttributeError):
singleton.prop

# Missing class attributes:
with self.assertRaises(AttributeError):
type(singleton).prop
with self.assertRaises(TypeError):
type(singleton).prop = 1
with self.assertRaises(AttributeError):
type(singleton).prop


class TestBreakpoint(unittest.TestCase):
Expand Down