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

Add proper underscore handling to float and complex types. #5356

Merged
merged 10 commits into from
Jul 28, 2024
Prev Previous commit
Next Next commit
remove expected failure decorators
  • Loading branch information
dannasman committed Jul 18, 2024
commit 4410d64aa03d1d8b456c684f9d7eed7f4e727c4d
2 changes: 0 additions & 2 deletions Lib/test/test_complex.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,6 @@ def test_constructor_negative_nans_from_string(self):
self.assertEqual(copysign(1., complex("-nan-nanj").real), -1.)
self.assertEqual(copysign(1., complex("-nan-nanj").imag), -1.)

# TODO: RUSTPYTHON
# @unittest.expectedFailure
def test_underscores(self):
# check underscores
for lit in VALID_UNDERSCORE_LITERALS:
Expand Down
2 changes: 0 additions & 2 deletions Lib/test/test_float.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ def test_float(self):
def test_noargs(self):
self.assertEqual(float(), 0.0)

# TODO: RUSTPYTHON
#@unittest.expectedFailure
def test_underscores(self):
for lit in VALID_UNDERSCORE_LITERALS:
if not any(ch in lit for ch in 'jJxXoObB'):
Expand Down
Loading