aboutsummaryrefslogtreecommitdiffstats
path: root/test/gtest_xml_test_utils.py
diff options
context:
space:
mode:
authorzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-04-09 02:57:38 +0000
committerzhanyong.wan <zhanyong.wan@861a406c-534a-0410-8894-cb66d6ee9925>2009-04-09 02:57:38 +0000
commit7fa242a44b47ce74d7246440b14571f7a5dd1b17 (patch)
tree968a9d50b23d7ef33cf37aaed77d23f0407fde7d /test/gtest_xml_test_utils.py
parentc12f63214e9b7761d27e68353e4aaf1761c9cf88 (diff)
downloadgoogletest-7fa242a44b47ce74d7246440b14571f7a5dd1b17.tar.gz
googletest-7fa242a44b47ce74d7246440b14571f7a5dd1b17.tar.bz2
googletest-7fa242a44b47ce74d7246440b14571f7a5dd1b17.zip
Makes the Python tests more stable (by Vlad Losev); fixes a memory leak in GetThreadCount() on Mac (by Vlad Losev); improves fuse_gtest_files.py to support fusing Google Mock files (by Zhanyong Wan).
Diffstat (limited to 'test/gtest_xml_test_utils.py')
-rwxr-xr-xtest/gtest_xml_test_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/gtest_xml_test_utils.py b/test/gtest_xml_test_utils.py
index 00a56cbf..64eebb10 100755
--- a/test/gtest_xml_test_utils.py
+++ b/test/gtest_xml_test_utils.py
@@ -150,7 +150,7 @@ class GTestXMLTestCase(unittest.TestCase):
for child in element.childNodes:
if child.nodeType == Node.CDATA_SECTION_NODE:
# Removes the source line number.
- cdata = re.sub(r"^.*/(.*:)\d+\n", "\\1*\n", child.nodeValue)
+ cdata = re.sub(r"^.*[/\\](.*:)\d+\n", "\\1*\n", child.nodeValue)
# Removes the actual stack trace.
child.nodeValue = re.sub(r"\nStack trace:\n(.|\n)*",
"", cdata)