summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na@python.org>2021-06-23 09:01:06 (GMT)
committerGitHub <noreply@github.com>2021-06-23 09:01:06 (GMT)
commit5a3108044d2e5b694da2d1f4176c9bbaef15c142 (patch)
tree1d57a8f4beca796b4540df50eb768a89833dd83b /Lib/test/test_import
parentc3f52b4d707a78eb342372a2be00f3eb846a05b9 (diff)
downloadcpython-5a3108044d2e5b694da2d1f4176c9bbaef15c142.zip
cpython-5a3108044d2e5b694da2d1f4176c9bbaef15c142.tar.gz
cpython-5a3108044d2e5b694da2d1f4176c9bbaef15c142.tar.bz2
bpo-28395: Remove unnecessary semicolons in tests (GH-26868)
Diffstat (limited to 'Lib/test/test_import')
-rw-r--r--Lib/test/test_import/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py
index 8fe3e1d..9744761 100644
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -1086,7 +1086,7 @@ class GetSourcefileTests(unittest.TestCase):
# Given a valid bytecode path, return the path to the corresponding
# source file if it exists.
with mock.patch('importlib._bootstrap_external._path_isfile') as _path_isfile:
- _path_isfile.return_value = True;
+ _path_isfile.return_value = True
path = TESTFN + '.pyc'
expect = TESTFN + '.py'
self.assertEqual(_get_sourcefile(path), expect)
@@ -1095,7 +1095,7 @@ class GetSourcefileTests(unittest.TestCase):
# Given a valid bytecode path without a corresponding source path,
# return the original bytecode path.
with mock.patch('importlib._bootstrap_external._path_isfile') as _path_isfile:
- _path_isfile.return_value = False;
+ _path_isfile.return_value = False
path = TESTFN + '.pyc'
self.assertEqual(_get_sourcefile(path), path)