[Python-modules-commits] [python-blessed] 01/02: Removes time based assertion in test_keyboard.py

Pierre-Elliott Bécue peb-guest at moszumanska.debian.org
Tue Jan 2 18:01:20 UTC 2018


This is an automated email from the git hooks/post-receive script.

peb-guest pushed a commit to branch master
in repository python-blessed.

commit f7be7193a7e6722b332f074de8db2c9f233f0d20
Author: Pierre-Elliott Bécue <becue at crans.org>
Date:   Sun Dec 31 13:12:44 2017 +0100

    Removes time based assertion in test_keyboard.py
    
     * Expecting the duration time for the tests to be bound between times
       at a millisecond precision is too much hardware-dependant, and so
       irrelevant for real conditions testing. The previous assertion
       expects that the test takes less than 1 or 2 second which is really
       reasonable.
---
 blessed/tests/test_keyboard.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/blessed/tests/test_keyboard.py b/blessed/tests/test_keyboard.py
index 9df528d..9b63f94 100644
--- a/blessed/tests/test_keyboard.py
+++ b/blessed/tests/test_keyboard.py
@@ -459,7 +459,6 @@ def test_esc_delay_cbreak_035():
     assert key_name == u'KEY_ESCAPE'
     assert os.WEXITSTATUS(status) == 0
     assert math.floor(time.time() - stime) == 0.0
-    assert 34 <= int(duration_ms) <= 45, duration_ms
 
 
 @pytest.mark.skipif(os.environ.get('TEST_QUICK', None) is not None,
@@ -493,7 +492,6 @@ def test_esc_delay_cbreak_135():
     assert key_name == u'KEY_ESCAPE'
     assert os.WEXITSTATUS(status) == 0
     assert math.floor(time.time() - stime) == 1.0
-    assert 134 <= int(duration_ms) <= 145, int(duration_ms)
 
 
 def test_esc_delay_cbreak_timout_0():
@@ -525,7 +523,6 @@ def test_esc_delay_cbreak_timout_0():
     assert key_name == u'KEY_ESCAPE'
     assert os.WEXITSTATUS(status) == 0
     assert math.floor(time.time() - stime) == 0.0
-    assert 34 <= int(duration_ms) <= 45, int(duration_ms)
 
 
 def test_esc_delay_cbreak_nonprefix_sequence():
@@ -559,7 +556,6 @@ def test_esc_delay_cbreak_nonprefix_sequence():
     assert key2 == u'a'
     assert os.WEXITSTATUS(status) == 0
     assert math.floor(time.time() - stime) == 0.0
-    assert -1 <= int(duration_ms) <= 15, duration_ms
 
 
 def test_esc_delay_cbreak_prefix_sequence():
@@ -593,7 +589,6 @@ def test_esc_delay_cbreak_prefix_sequence():
     assert key2 == u'['
     assert os.WEXITSTATUS(status) == 0
     assert math.floor(time.time() - stime) == 0.0
-    assert 34 <= int(duration_ms) <= 45, duration_ms
 
 
 def test_get_location_0s():

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-blessed.git



More information about the Python-modules-commits mailing list