mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +00:00
use assert[Not]In where appropriate
This commit is contained in:
parent
8cd0a66a0f
commit
aa98058cc4
86 changed files with 622 additions and 599 deletions
|
@ -264,7 +264,7 @@ class PosixTester(unittest.TestCase):
|
|||
|
||||
def test_lsdir(self):
|
||||
if hasattr(posix, 'lsdir'):
|
||||
self.assertTrue(test_support.TESTFN in posix.lsdir(os.curdir))
|
||||
self.assertIn(test_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