Repository navigation
bpo-30486: Allow setting cell value #1840
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
Changes from 1 commit
83b5e62
9b4cfd2
244cb7e
c5db387
02dbd0e
447cc10
b22b945
f11ace7
bd5e329
1f0ef6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -100,19 +100,16 @@ def f(): return a | |
| c[0].cell_contents = 9 | ||
| self.assertEqual(c[0].cell_contents, 9) | ||
| self.assertEqual(f(), 9) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also check |
||
| self.assertEqual(a, 9) | ||
| del c[0].cell_contents | ||
| try: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand that you have copied an example from the above test, but this is too verbose. |
||
| c[0].cell_contents | ||
| except ValueError: | ||
| pass | ||
| else: | ||
| self.fail("shouldn't be able to read an empty cell") | ||
| try: | ||
| with self.assertRaises(NameError): | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also check |
||
| f() | ||
| except NameError: | ||
| pass | ||
| else: | ||
| self.fail("variable not deleted") | ||
|
|
||
| def test___name__(self): | ||
| self.assertEqual(self.b.__name__, 'b') | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to check how setting and deleting
cell_contentsaffects the local variablea.