8000 gh-94808: Add coverage test for number check by ekohilas · Pull Request #111445 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-94808: Add coverage test for number check #111445

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 5 commits into from
Oct 29, 2023
Merged
Show file tree
Hide file tree
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
Update Lib/test/test_capi/test_abstract.py
Co-authored-by: Donghee Na <donghee.na92@gmail.com>
  • Loading branch information
ekohilas and corona10 committed Oct 29, 2023
commit fd3d99c6192fdb0737b6bae8e76ebe10dbfdd029
7 changes: 5 additions & 2 deletions Lib/test/test_capi/test_abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,9 +817,12 @@ def test_sequence_tuple(self):
self.assertRaises(TypeError, xtuple, 42)
self.assertRaises(SystemError, xtuple, NULL)

def test_number_check_complex(self):
def test_number_check(self):
number_check = _testcapi.number_check
self.assertTrue(_testcapi.number_check(1 + 1j))
self.assertTrue(number_check(1 + 1j))
self.assertTrue(number_check(1))
self.assertTrue(number_check(0.5))
self.assertFalse(number_check("1 + 1j"))


if __name__ == "__main__":
Expand Down

This file was deleted.

0