Skip to content
Closed
Changes from all commits
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
8 changes: 8 additions & 0 deletions Lib/test/test_math.py
Original file line number Diff line number Diff line change
Expand Up @@ -1781,6 +1781,14 @@
self.assertEqual(math.pow(2.3, -0.), 1.)
self.assertEqual(math.pow(-2.3, -0.), 1.)
self.assertEqual(math.pow(NAN, -0.), 1.)
self.assertEqual(math.pow(0, -0.), 1.)
self.assertEqual(math.pow(0.0, -0.), 1.)
self.assertEqual(math.pow(-0, -0.), 1.)
self.assertEqual(math.pow(-0.0, -0.), 1.)
self.assertEqual(math.pow(-0, 0.), 1.)
self.assertEqual(math.pow(-0.0, -.), 1.)

Check failure on line 1789 in Lib/test/test_math.py

View workflow job for this annotation

GitHub Actions / lint

Ruff

Lib/test/test_math.py:1789:43: SyntaxError: Expected an identifier

Check failure on line 1789 in Lib/test/test_math.py

View workflow job for this annotation

GitHub Actions / lint

Ruff

Lib/test/test_math.py:1789:42: SyntaxError: Expected an expression
self.assertEqual(math.pow(0, 0.), 1.)
self.assertEqual(math.pow(0.0, 0.), 1.)

# pow(x, y) is invalid if x is negative and y is not integral
self.assertRaises(ValueError, math.pow, -1., 2.3)
Expand Down
Loading