gh-114272: Fix or skip tests that fail due to spaces in paths (GH-114451)

This commit is contained in:
Steve Dower 2024-01-25 00:38:34 +00:00 committed by GitHub
parent d5c21c12c1
commit c63c6142f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 45 additions and 25 deletions

View file

@ -307,6 +307,7 @@ class ImportTest(unittest.TestCase):
webbrowser.get('fakebrowser')
self.assertIsNotNone(webbrowser._tryorder)
@unittest.skipIf(" " in sys.executable, "test assumes no space in path (GH-114452)")
def test_synthesize(self):
webbrowser = import_helper.import_fresh_module('webbrowser')
name = os.path.basename(sys.executable).lower()