diff options
author | Thomas Amland <thomas.amland@gmail.com> | 2016-01-19 13:31:01 (GMT) |
---|---|---|
committer | Thomas Amland <thomas.amland@gmail.com> | 2016-01-19 13:41:20 (GMT) |
commit | d404af0d987a9c38cafce82a7e26ec8468c88361 (patch) | |
tree | db383749df456c1019b514982213f3fc12ab9008 /googletest/test/gtest_xml_output_unittest.py | |
parent | 13206d6f53aaff844f2d3595a01ac83a29e383db (diff) | |
download | googletest-d404af0d987a9c38cafce82a7e26ec8468c88361.zip googletest-d404af0d987a9c38cafce82a7e26ec8468c88361.tar.gz googletest-d404af0d987a9c38cafce82a7e26ec8468c88361.tar.bz2 |
add python 3 support to tests
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 f605d4e..e77be3d 100755 --- a/googletest/test/gtest_xml_output_unittest.py +++ b/googletest/test/gtest_xml_output_unittest.py @@ -209,7 +209,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 |