mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Use assertIsNone. Thanks Terry Reedy.
This commit is contained in:
parent
591c1cca32
commit
b10951549b
9 changed files with 11 additions and 11 deletions
|
|
@ -115,7 +115,7 @@ class FinderTests(abc.FinderTests):
|
|||
def test_failure(self):
|
||||
with source_util.create_modules('blah') as mapping:
|
||||
nothing = self.import_(mapping['.root'], 'sdfsadsadf')
|
||||
self.assertIs(nothing, None)
|
||||
self.assertIsNone(nothing)
|
||||
|
||||
def test_empty_string_for_dir(self):
|
||||
# The empty string from sys.path means to search in the cwd.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue