示例#1
0
 def isnt_cpu_heavy(self):
     "stdin mirroring isn't CPU-heavy"
     # CPU measurement under PyPy is...rather different. NBD.
     if PYPY:
         skip()
     with assert_cpu_usage(lt=5.0):
         run("python -u busywork.py 10", pty=True, hide=True)
示例#2
0
 def stdin_mirroring_isnt_cpu_heavy(self):
     "stdin mirroring isn't CPU-heavy"
     # CPU measurement under PyPy is...rather different. NBD.
     if PYPY:
         skip()
     with assert_cpu_usage(lt=5.0):
         run("python -u busywork.py 10", pty=True, hide=True)
示例#3
0
文件: runners.py 项目: brutus/invoke
 def isnt_cpu_heavy(self):
     "stdin mirroring isn't CPU-heavy"
     # CPU measurement under PyPy is...rather different. NBD.
     if PYPY:
         skip()
     # Python 3.5 has been seen using up to ~6.0s CPU time under Travis
     with assert_cpu_usage(lt=7.0):
         run("python -u busywork.py 10", pty=True, hide=True)
示例#4
0
文件: runners.py 项目: vovanz/invoke
 def isnt_cpu_heavy(self):
     "stdin mirroring isn't CPU-heavy"
     # CPU measurement under PyPy is...rather different. NBD.
     if PYPY:
         skip()
     # Python 3.5 has been seen using up to ~6.0s CPU time under Travis
     with assert_cpu_usage(lt=7.0):
         run("python -u busywork.py 10", pty=True, hide=True)
示例#5
0
 def stdin_mirroring_isnt_cpu_heavy(self):
     "stdin mirroring isn't CPU-heavy"
     with assert_cpu_usage(lt=5.0):
         run("python -u busywork.py 10", pty=True, hide=True)
示例#6
0
文件: runners.py 项目: giappv/invoke
 def stdin_mirroring_isnt_cpu_heavy(self):
     "stdin mirroring isn't CPU-heavy"
     with assert_cpu_usage(lt=5.0):
         run("python -u busywork.py 10", pty=True, hide=True)