summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_fractions.py
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2020-10-07 23:43:44 (GMT)
committerGitHub <noreply@github.com>2020-10-07 23:43:44 (GMT)
commit4e0ce820586e93cfcefb16c2a3df8eaefc54cbca (patch)
tree62e95d644abcbc04dd6baedc9b3f44f42d4d974f /Lib/test/test_fractions.py
parent4f3c25043d651a13c41cffcee703f7d5cb677cc7 (diff)
downloadcpython-4e0ce820586e93cfcefb16c2a3df8eaefc54cbca.zip
cpython-4e0ce820586e93cfcefb16c2a3df8eaefc54cbca.tar.gz
cpython-4e0ce820586e93cfcefb16c2a3df8eaefc54cbca.tar.bz2
Revert "bpo-26680: Incorporate is_integer in all built-in and standard library numeric types (GH-6121)" (GH-22584)
This reverts commit 58a7da9e125422323f79c4ee95ac5549989d8162.
Diffstat (limited to 'Lib/test/test_fractions.py')
-rw-r--r--Lib/test/test_fractions.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/test/test_fractions.py b/Lib/test/test_fractions.py
index 811b58f..0845f79 100644
--- a/Lib/test/test_fractions.py
+++ b/Lib/test/test_fractions.py
@@ -724,17 +724,6 @@ class FractionTest(unittest.TestCase):
self.assertEqual(type(f.numerator), myint)
self.assertEqual(type(f.denominator), myint)
- def test_is_integer(self):
- # Issue #26680: Incorporating number.is_integer into Fraction
- self.assertTrue(F(-1, 1).is_integer())
- self.assertTrue(F(0, 1).is_integer())
- self.assertTrue(F(1, 1).is_integer())
- self.assertTrue(F(42, 1).is_integer())
- self.assertTrue(F(2, 2).is_integer())
- self.assertTrue(F(8, 4).is_integer())
- self.assertFalse(F(1, 2).is_integer())
- self.assertFalse(F(1, 3).is_integer())
- self.assertFalse(F(2, 3).is_integer())
if __name__ == '__main__':
unittest.main()