upgrade python packages to latest versions
This commit is contained in:
parent
9675e861b4
commit
b6f2ca548a
1289 changed files with 401 additions and 4866 deletions
|
@ -616,7 +616,7 @@ class MainTestCase(utils.TestCase):
|
|||
shutil.copy(entity, os.path.join(tempdir, 'emptyfile.txt'))
|
||||
entity = os.path.realpath(os.path.join(tempdir, 'emptyfile.txt'))
|
||||
|
||||
package_path = 'wakatime.packages.py3.tzlocal.get_localzone' if is_py3 else 'wakatime.packages.py2.tzlocal.get_localzone'
|
||||
package_path = 'wakatime.packages.tzlocal.get_localzone'
|
||||
timezone = tzlocal.get_localzone()
|
||||
timezone.zone = 'tz汉语' if is_py3 else 'tz\xe6\xb1\x89\xe8\xaf\xad'
|
||||
with utils.mock.patch(package_path) as mock_getlocalzone:
|
||||
|
|
|
@ -259,7 +259,7 @@ class OfflineQueueTestCase(utils.TestCase):
|
|||
with utils.mock.patch('wakatime.offlinequeue.Queue.get_db_file') as mock_db_file:
|
||||
mock_db_file.return_value = fh.name
|
||||
|
||||
exception_msg = u("Oops, requests raised an exception. You're move.")
|
||||
exception_msg = u("Oops, requests raised an exception. This is a test.")
|
||||
self.patched['wakatime.packages.requests.adapters.HTTPAdapter.send'].side_effect = AttributeError(exception_msg)
|
||||
|
||||
now = u(int(time.time()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue