on xenial help sign in
Fixed the check for string in the lock screen test.
cba979fLeo Arias
tests/autopilot/unity8/shell/tests/test_lock_screen.py+1−1
@@ -135,7 +135,7 @@ class TestLockscreen(UnityTestCase):
135 :raises: TypeError if passphrase is not a string.
135 :raises: TypeError if passphrase is not a string.
136
136
137 """
137 """
138− if not isinstance(passphrase, basestring):
138+ if not isinstance(passphrase, str):
139 raise TypeError(
139 raise TypeError(
140 "'passphrase' parameter must be a string, not %r."
140 "'passphrase' parameter must be a string, not %r."
141 % type(passphrase)
141 % type(passphrase)