diff options
author | Tom Hughes <tomhughes@google.com> | 2023-01-25 23:00:39 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-01-25 23:01:21 (GMT) |
commit | b495f72f1f096135cf9cf8c7879b5b89250de50a (patch) | |
tree | 6866d38ef687695218fade7ea7ca44e7a6b70d6e /googletest | |
parent | f47d75faf35019c5e39d785c9c77f510a9f17b2b (diff) | |
download | googletest-b495f72f1f096135cf9cf8c7879b5b89250de50a.zip googletest-b495f72f1f096135cf9cf8c7879b5b89250de50a.tar.gz googletest-b495f72f1f096135cf9cf8c7879b5b89250de50a.tar.bz2 |
Use more specific assertLess instead of assertTrue
PiperOrigin-RevId: 504670738
Change-Id: Ib68b676403204098e89f536f9b8317f9f717c24d
Diffstat (limited to 'googletest')
-rwxr-xr-x | googletest/test/gtest_xml_output_unittest.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/googletest/test/gtest_xml_output_unittest.py b/googletest/test/gtest_xml_output_unittest.py index 29fbc41..d48d1af 100755 --- a/googletest/test/gtest_xml_output_unittest.py +++ b/googletest/test/gtest_xml_output_unittest.py @@ -282,8 +282,7 @@ class GTestXMLOutputUnitTest(gtest_xml_test_utils.GTestXMLTestCase): time_delta = abs(datetime.datetime.now() - date_time_from_xml) # timestamp value should be near the current local time - self.assertTrue(time_delta < datetime.timedelta(seconds=600), - 'time_delta is %s' % time_delta) + self.assertLess(time_delta, datetime.timedelta(seconds=600)) actual.unlink() def testDefaultOutputFile(self): |