mirror of
https://github.com/clearml/wexpect-venv
synced 2025-06-26 18:15:52 +00:00
[FIX] Deprecation of the time.clock()
This commit is contained in:
parent
16f3e4fab5
commit
58f64d39fa
@ -1,6 +1,8 @@
|
||||
language: python
|
||||
dist: xenial # required for Python >= 3.7
|
||||
matrix:
|
||||
include:
|
||||
- stage: test
|
||||
- os: windows
|
||||
language: sh
|
||||
python: "3.7"
|
||||
@ -18,7 +20,7 @@ install:
|
||||
|
||||
# command to run tests
|
||||
script:
|
||||
- coverage run -m unittest
|
||||
- tox
|
||||
|
||||
# Push the results back to codecov
|
||||
after_success:
|
||||
|
||||
@ -2319,7 +2319,7 @@ class Wtty:
|
||||
if self.__currentReadCo.Y > maxconsoleY:
|
||||
time.sleep(.2)
|
||||
|
||||
start = time.clock()
|
||||
start = time.time()
|
||||
s = self.readConsoleToCursor()
|
||||
|
||||
if self.__currentReadCo.Y > maxconsoleY:
|
||||
@ -2334,7 +2334,7 @@ class Wtty:
|
||||
return ''
|
||||
|
||||
time.sleep(0.001)
|
||||
end = time.clock()
|
||||
end = time.time()
|
||||
timeout -= end - start
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user