diff options
author | Bumsik Kim <k.bumsik@gmail.com> | 2018-07-03 11:30:06 (GMT) |
---|---|---|
committer | Pablo Galindo <Pablogsal@gmail.com> | 2018-07-03 11:30:06 (GMT) |
commit | 3cf1f154edb88c108877729ea09f4ac174697fea (patch) | |
tree | 3ca79a59a98c1008666ed7b0677f62fe547abb0f /Lib/test/test_webbrowser.py | |
parent | 23401fb960bb94e6ea62d2999527968d53d3fc65 (diff) | |
download | cpython-3cf1f154edb88c108877729ea09f4ac174697fea.zip cpython-3cf1f154edb88c108877729ea09f4ac174697fea.tar.gz cpython-3cf1f154edb88c108877729ea09f4ac174697fea.tar.bz2 |
bpo-34019: Fix wrong arguments for Opera Browser (#8047)
The Opera Browser was using a outdated command line invocation that resulted in an incorrect URL being opened in the browser when requested using the webbrowser module.
* Correct the arguments passed to the Opera Browser when opening a new URL.
Diffstat (limited to 'Lib/test/test_webbrowser.py')
-rw-r--r-- | Lib/test/test_webbrowser.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_webbrowser.py b/Lib/test/test_webbrowser.py index 0820b91..7a396bd 100644 --- a/Lib/test/test_webbrowser.py +++ b/Lib/test/test_webbrowser.py @@ -170,23 +170,23 @@ class OperaCommandTest(CommandTestMixin, unittest.TestCase): def test_open(self): self._test('open', - options=['-remote'], - arguments=['openURL({})'.format(URL)]) + options=[], + arguments=[URL]) def test_open_with_autoraise_false(self): self._test('open', kw=dict(autoraise=False), - options=['-remote', '-noraise'], - arguments=['openURL({})'.format(URL)]) + options=[], + arguments=[URL]) def test_open_new(self): self._test('open_new', - options=['-remote'], - arguments=['openURL({},new-window)'.format(URL)]) + options=['--new-window'], + arguments=[URL]) def test_open_new_tab(self): self._test('open_new_tab', - options=['-remote'], - arguments=['openURL({},new-page)'.format(URL)]) + options=[], + arguments=[URL]) class ELinksCommandTest(CommandTestMixin, unittest.TestCase): |