diff options
author | Peter Levine <plevine457@gmail.com> | 2018-09-14 23:40:51 (GMT) |
---|---|---|
committer | Peter Levine <plevine457@gmail.com> | 2018-09-14 23:40:51 (GMT) |
commit | 149c0d24148da9a339d6c9d03e638a39c59731f6 (patch) | |
tree | d4d1991631be4474135690b7fa3ec15f014ffd8a /googletest/test/gtest_xml_output_unittest.py | |
parent | bc2d0935b74917be0821bfd834472ed9cc4a3b5b (diff) | |
download | googletest-149c0d24148da9a339d6c9d03e638a39c59731f6.zip googletest-149c0d24148da9a339d6c9d03e638a39c59731f6.tar.gz googletest-149c0d24148da9a339d6c9d03e638a39c59731f6.tar.bz2 |
Fix Python3 support
Diffstat (limited to 'googletest/test/gtest_xml_output_unittest.py')
-rwxr-xr-x | googletest/test/gtest_xml_output_unittest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/googletest/test/gtest_xml_output_unittest.py b/googletest/test/gtest_xml_output_unittest.py index faedd4e..8669f19 100755 --- a/googletest/test/gtest_xml_output_unittest.py +++ b/googletest/test/gtest_xml_output_unittest.py @@ -266,7 +266,8 @@ class GTestXMLOutputUnitTest(gtest_xml_test_utils.GTestXMLTestCase): 'gtest_no_test_unittest') try: os.remove(output_file) - except OSError, e: + except OSError: + e = sys.exc_info()[1] if e.errno != errno.ENOENT: raise |