On Fri, Jan 15, 2016 at 11:57 AM Adrian McCarthy <amcca...@google.com> wrote:
> amccarth created this revision. > amccarth added a reviewer: zturner. > amccarth added a subscriber: lldb-commits. > > Tested on Windows with Python 3.5. > > http://reviews.llvm.org/D16237 > > Files: > packages/Python/lldbsuite/test/logging/TestLogging.py > > Index: packages/Python/lldbsuite/test/logging/TestLogging.py > =================================================================== > --- packages/Python/lldbsuite/test/logging/TestLogging.py > +++ packages/Python/lldbsuite/test/logging/TestLogging.py > @@ -61,7 +61,7 @@ > f.close () > os.remove (log_file) > > - self.assertTrue(log_lines > 0, "Something was written to the log > file.") > + self.assertTrue(len(log_lines) > 0, "Something was written to the > log file.") > Can you use self.assertGreater > # Check that lldb truncates its log files > @no_debug_info_test > @@ -83,7 +83,7 @@ > contents = f.read () > > # check that it got removed > - self.assertTrue(string.find(contents, "bacon") == -1) > + self.assertTrue(contents.find("bacon") == -1) > and self.assertEqual
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits