summaryrefslogtreecommitdiffstats
path: root/googletest/test/gtest_xml_output_unittest.py
diff options
context:
space:
mode:
authorPeter Levine <plevine457@gmail.com>2018-09-14 23:40:51 (GMT)
committerPeter Levine <plevine457@gmail.com>2018-09-14 23:40:51 (GMT)
commit149c0d24148da9a339d6c9d03e638a39c59731f6 (patch)
treed4d1991631be4474135690b7fa3ec15f014ffd8a /googletest/test/gtest_xml_output_unittest.py
parentbc2d0935b74917be0821bfd834472ed9cc4a3b5b (diff)
downloadgoogletest-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-xgoogletest/test/gtest_xml_output_unittest.py3
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