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
Next Next commit
fix test
  • Loading branch information
arihant2math committed Apr 18, 2025
commit bec6580dcc75d69f260e54d3395abc2dfcc95ae8
4 changes: 0 additions & 4 deletions Lib/test/test_fractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,17 +617,13 @@ def testConversions(self):

self.assertTypedEquals(0.1+0j, complex(F(1,10)))

# TODO: RUSTPYTHON
@unittest.expectedFailure
def testSupportsInt(self):
# See bpo-44547.
f = F(3, 2)
self.assertIsInstance(f, typing.SupportsInt)
self.assertEqual(int(f), 1)
self.assertEqual(type(int(f)), int)

# TODO: RUSTPYTHON
@unittest.expectedFailure
def testIntGuaranteesIntReturn(self):
# Check that int(some_fraction) gives a result of exact type `int`
# even if the fraction is using some other Integral type for its
Expand Down