summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/source/test_finder.py
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2012-06-27 19:26:26 (GMT)
committerEric V. Smith <eric@trueblade.com>2012-06-27 19:26:26 (GMT)
commitfaae3adbb98521d039c574fd3ed417f54a72374d (patch)
treec5d7689408588d896a54dc7dfcf13172a93a1cb4 /Lib/importlib/test/source/test_finder.py
parent8d37ffa563cf552dd34990bfefd935eef8adfd11 (diff)
downloadcpython-faae3adbb98521d039c574fd3ed417f54a72374d.zip
cpython-faae3adbb98521d039c574fd3ed417f54a72374d.tar.gz
cpython-faae3adbb98521d039c574fd3ed417f54a72374d.tar.bz2
Changed importlib tests to use assertIs, assertIsInstance, etc., instead of just assertTrue.
Diffstat (limited to 'Lib/importlib/test/source/test_finder.py')
-rw-r--r--Lib/importlib/test/source/test_finder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/test/source/test_finder.py b/Lib/importlib/test/source/test_finder.py
index b22c103..e1ef938 100644
--- a/Lib/importlib/test/source/test_finder.py
+++ b/Lib/importlib/test/source/test_finder.py
@@ -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.assertTrue(nothing is None)
+ self.assertIs(nothing, None)
def test_empty_string_for_dir(self):
# The empty string from sys.path means to search in the cwd.