MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_bug_27936

Method test_bug_27936

Lib/test/test_builtin.py:1951–1958  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1949 self.assertEqual(round(5e15+3), 5e15+3)
1950
1951 def test_bug_27936(self):
1952 # Verify that ndigits=None means the same as passing in no argument
1953 for x in [1234,
1954 1234.56,
1955 decimal.Decimal('1234.56'),
1956 fractions.Fraction(123456, 100)]:
1957 self.assertEqual(round(x, None), round(x))
1958 self.assertEqual(type(round(x, None)), type(round(x)))
1959
1960 def test_setattr(self):
1961 setattr(sys, 'spam', 1)

Callers

nothing calls this directly

Calls 2

roundFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected