summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-06-12 06:48:19 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-06-12 06:48:19 (GMT)
commit4aa15a0d0dbf5d4a9172ff3187ad458452ae3f68 (patch)
treee5879e8346108008bae6357caa5903d84c4e0605 /Lib
parentf0ee5ccd19ec9ad0fd6c98ebf128832c225565cd (diff)
parent98e9051577dd8dca01ccd0df021e8901cbe98965 (diff)
downloadcpython-4aa15a0d0dbf5d4a9172ff3187ad458452ae3f68.zip
cpython-4aa15a0d0dbf5d4a9172ff3187ad458452ae3f68.tar.gz
cpython-4aa15a0d0dbf5d4a9172ff3187ad458452ae3f68.tar.bz2
Merge heads
Diffstat (limited to 'Lib')
-rw-r--r--Lib/lib2to3/tests/test_refactor.py5
-rw-r--r--Lib/test/test_coroutines.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/Lib/lib2to3/tests/test_refactor.py b/Lib/lib2to3/tests/test_refactor.py
index ab5ce727..94dc135 100644
--- a/Lib/lib2to3/tests/test_refactor.py
+++ b/Lib/lib2to3/tests/test_refactor.py
@@ -8,6 +8,7 @@ import sys
import os
import codecs
import io
+import re
import tempfile
import shutil
import unittest
@@ -222,8 +223,8 @@ from __future__ import print_function"""
actually_write=False)
# Testing that it logged this message when write=False was passed is
# sufficient to see that it did not bail early after "No changes".
- message_regex = r"Not writing changes to .*%s%s" % (
- os.sep, os.path.basename(test_file))
+ message_regex = r"Not writing changes to .*%s" % \
+ re.escape(os.sep + os.path.basename(test_file))
for message in debug_messages:
if "Not writing changes" in message:
self.assertRegex(message, message_regex)
diff --git a/Lib/test/test_coroutines.py b/Lib/test/test_coroutines.py
index 4f725ae..d0cefb0 100644
--- a/Lib/test/test_coroutines.py
+++ b/Lib/test/test_coroutines.py
@@ -1423,7 +1423,7 @@ class CoroutineTest(unittest.TestCase):
with warnings.catch_warnings():
warnings.simplefilter("error")
- # Test that __aiter__ that returns an asyncronous iterator
+ # Test that __aiter__ that returns an asynchronous iterator
# directly does not throw any warnings.
run_async(main())
self.assertEqual(I, 111011)