[Python-checkins] bpo-34661: Fix test skipping call. (GH-9266)

Miss Islington (bot) webhook-mailer at python.org
Thu Sep 13 14:35:25 EDT 2018


https://github.com/python/cpython/commit/218b4bf47410ff8ab46b68461267fe10db18aee1
commit: 218b4bf47410ff8ab46b68461267fe10db18aee1
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-09-13T11:35:18-07:00
summary:

bpo-34661: Fix test skipping call. (GH-9266)

(cherry picked from commit e78734d579439861f6d7e12f35d268836b2c1e24)

Co-authored-by: Benjamin Peterson <benjamin at python.org>

files:
M Lib/test/test_shutil.py

diff --git a/Lib/test/test_shutil.py b/Lib/test/test_shutil.py
index ee23ac806283..6e2b1004d309 100644
--- a/Lib/test/test_shutil.py
+++ b/Lib/test/test_shutil.py
@@ -1125,7 +1125,7 @@ def test_unzip_zipfile(self):
             except subprocess.CalledProcessError as exc:
                 details = exc.output.decode(errors="replace")
                 if 'unrecognized option: t' in details:
-                    self.skip("unzip doesn't support -t")
+                    self.skipTest("unzip doesn't support -t")
                 msg = "{}\n\n**Unzip Output**\n{}"
                 self.fail(msg.format(exc, details))
 



More information about the Python-checkins mailing list