mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
use assert[Not]In where appropriate
A patch from Dave Malcolm.
This commit is contained in:
parent
a69ba65fdc
commit
577473fe68
75 changed files with 471 additions and 454 deletions
|
@ -251,7 +251,7 @@ class PosixTester(unittest.TestCase):
|
|||
|
||||
def test_lsdir(self):
|
||||
if hasattr(posix, 'lsdir'):
|
||||
self.assertTrue(support.TESTFN in posix.lsdir(os.curdir))
|
||||
self.assertIn(support.TESTFN, posix.lsdir(os.curdir))
|
||||
|
||||
def test_access(self):
|
||||
if hasattr(posix, 'access'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue