8000 gh-106078: Convert `_decimal` types to heap types by CharlieZhao95 · Pull Request #106079 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-106078: Convert _decimal types to heap types #106079

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

Merged
merged 18 commits into from
Jun 29, 2023
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
Next Next commit
Fix lint
  • Loading branch information
CharlieZhao95 committed Jun 28, 2023
commit 514c8397fc97ed5e392d5511c8a93224eaa829e1
4 changes: 2 additions & 2 deletions Lib/test/test_decimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2902,13 +2902,13 @@ def setUp(self):
decimal.Context,
)
self.decimal = decimal

def test_immutable_types(self):
for tp in self.dataset:
with self.subTest(tp=tp):
with self.assertRaisesRegex(TypeError, "immutable"):
tp.foo = 1

def test_disallow_instantiation(self):
decimal = self.decimal
ctxmanager_type = type(decimal.localcontext())
Expand Down
0