-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
$ cat foo.py
import unittest
class TestFoo(unittest.TestCase):
def test_foo(self):
self.assertFalse(None)
unittest.main()
$ ruff --select PT009 --fix foo.py
Found 1 error (1 fixed, 0 remaining).
$ cat foo.py
import unittest
class TestFoo(unittest.TestCase):
def test_foo(self):
assert None is False
unittest.main()
$ python3 foo.py
F
======================================================================
FAIL: test_foo (__main__.TestFoo)
----------------------------------------------------------------------
Traceback (most recent call last):
File "foo.py", line 7, in test_foo
assert None is False
AssertionError
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (failures=1)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels