mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
gh-102871: Remove obsolete browsers from webbrowser (#102872)
This commit is contained in:
parent
048d6243d4
commit
b0422e140d
5 changed files with 29 additions and 117 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue