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
|
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:
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user