[FIX] Deprecation of the time.clock()

This commit is contained in:
Benedek Racz 2019-09-04 12:58:38 +02:00
parent 16f3e4fab5
commit 58f64d39fa
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,8 @@
language: python
dist: xenial # required for Python >= 3.7 dist: xenial # required for Python >= 3.7
matrix: matrix:
include: include:
- stage: test
- os: windows - os: windows
language: sh language: sh
python: "3.7" python: "3.7"
@ -18,7 +20,7 @@ install:
# command to run tests # command to run tests
script: script:
- coverage run -m unittest - tox
# Push the results back to codecov # Push the results back to codecov
after_success: after_success:

View File

@ -2319,7 +2319,7 @@ class Wtty:
if self.__currentReadCo.Y > maxconsoleY: if self.__currentReadCo.Y > maxconsoleY:
time.sleep(.2) time.sleep(.2)
start = time.clock() start = time.time()
s = self.readConsoleToCursor() s = self.readConsoleToCursor()
if self.__currentReadCo.Y > maxconsoleY: if self.__currentReadCo.Y > maxconsoleY:
@ -2334,7 +2334,7 @@ class Wtty:
return '' return ''
time.sleep(0.001) time.sleep(0.001)
end = time.clock() end = time.time()
timeout -= end - start timeout -= end - start
except Exception as e: except Exception as e: