gh-102871: Remove obsolete browsers from webbrowser (#102872)

This commit is contained in:
James De Bias 2023-04-01 02:02:47 +11:00 committed by GitHub
parent 048d6243d4
commit b0422e140d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 117 deletions

View file

@ -11,7 +11,7 @@ from test.support import os_helper
if not support.has_subprocess_support:
raise unittest.SkipTest("test webserver requires subprocess")
URL = 'http://www.example.com'
URL = 'https://www.example.com'
CMD_NAME = 'test'
@ -120,34 +120,9 @@ class MozillaCommandTest(CommandTestMixin, unittest.TestCase):
arguments=['-new-tab', URL])
class NetscapeCommandTest(CommandTestMixin, unittest.TestCase):
class EpiphanyCommandTest(CommandTestMixin, unittest.TestCase):
browser_class = webbrowser.Netscape
def test_open(self):
self._test('open',
options=['-raise', '-remote'],
arguments=['openURL({})'.format(URL)])
def test_open_with_autoraise_false(self):
self._test('open', kw=dict(autoraise=False),
options=['-noraise', '-remote'],
arguments=['openURL({})'.format(URL)])
def test_open_new(self):
self._test('open_new',
options=['-raise', '-remote'],
arguments=['openURL({},new-window)'.format(URL)])
def test_open_new_tab(self):
self._test('open_new_tab',
options=['-raise', '-remote'],
arguments=['openURL({},new-tab)'.format(URL)])
class GaleonCommandTest(CommandTestMixin, unittest.TestCase):
browser_class = webbrowser.Galeon
browser_class = webbrowser.Epiphany
def test_open(self):
self._test('open',