Skip to content

Commit 07df909

Browse files
tox fixes
1 parent 391bf8c commit 07df909

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SoftLayer/CLI/environment.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def getpass(self, prompt, default=None):
7777
# https://stackoverflow.com/questions/101128/how-do-i-read-text-from-the-clipboard
7878
if password == 'àR':
7979
# tkinter is a built in python gui, but it has clipboard reading functions.
80+
# pylint: disable=import-outside-toplevel
8081
from tkinter import Tk
8182
tk_manager = Tk()
8283
password = tk_manager.clipboard_get()

tests/CLI/environment_tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,10 @@ def test_getpass(self, prompt_mock):
6060
@mock.patch('tkinter.Tk')
6161
def test_getpass_issues1436(self, tk, prompt_mock):
6262
prompt_mock.return_value = 'àR'
63-
r = self.env.getpass('input')
63+
self.env.getpass('input')
6464
prompt_mock.assert_called_with('input', default=None, hide_input=True)
6565
tk.assert_called_with()
6666

67-
6867
def test_resolve_alias(self):
6968
self.env.aliases = {'aliasname': 'realname'}
7069
r = self.env.resolve_alias('aliasname')

0 commit comments

Comments
 (0)