From: Terry Jan Reedy Date: Mon, 6 May 2013 03:22:19 +0000 (-0400) Subject: Issue17883: Update to assertIn to see why test fails on one buildbot. X-Git-Tag: v2.7.5~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1d6f858d4dfab629a7dd453808bb37668e63514;p=thirdparty%2FPython%2Fcpython.git Issue17883: Update to assertIn to see why test fails on one buildbot. --- diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index 8db11dc77d05..ea3d87d7b57d 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -148,7 +148,7 @@ class TclTest(unittest.TestCase): env.unset("TCL_LIBRARY") f = os.popen('%s -c "import Tkinter; print Tkinter"' % (unc_name,)) - self.assertTrue('Tkinter.py' in f.read()) + self.assertIn('Tkinter.py', f.read()) # exit code must be zero self.assertEqual(f.close(), None)