summaryrefslogtreecommitdiff
path: root/cpp/test/Slice/errorDetection/test.py
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2017-05-09 17:35:55 -0400
committerJoe George <joe@zeroc.com>2017-05-09 17:35:55 -0400
commit35dfdbac8078b16bb3fc35a11cf94462dd349224 (patch)
treebaa72c517ad108bba8ce54c612e86ef8508237e1 /cpp/test/Slice/errorDetection/test.py
parentCleanup more whitespace (diff)
downloadice-35dfdbac8078b16bb3fc35a11cf94462dd349224.tar.bz2
ice-35dfdbac8078b16bb3fc35a11cf94462dd349224.tar.xz
ice-35dfdbac8078b16bb3fc35a11cf94462dd349224.zip
Fix slice/errorDetection test
Diffstat (limited to 'cpp/test/Slice/errorDetection/test.py')
-rw-r--r--cpp/test/Slice/errorDetection/test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/test/Slice/errorDetection/test.py b/cpp/test/Slice/errorDetection/test.py
index 4158679a350..fb2b5e0c1c9 100644
--- a/cpp/test/Slice/errorDetection/test.py
+++ b/cpp/test/Slice/errorDetection/test.py
@@ -30,7 +30,7 @@ class SliceErrorDetectionTestCase(ClientTestCase):
output = slice2cpp.getOutput(current)
regex1 = re.compile("\.ice$", re.IGNORECASE)
- lines1 = output.strip().split("\n")
+ lines1 = output.strip().splitlines()
lines2 = open(os.path.join(testdir, regex1.sub(".err", file)), "r").readlines()
if len(lines1) != len(lines2):
raise RuntimeError("failed (lines1 = {0}, lines2 = {1})!".format(len(lines1), len(lines2)))