[Python-modules-commits] [python-blessed] 02/07: Removes the time based assertion when timeout is 0 in test_keyboard.py

Pierre-Elliott Bécue peb-guest at moszumanska.debian.org
Sun Dec 31 13:02:04 UTC 2017


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 82a0e807c403b62d9efe17766d04c47e6c3ccbe3
Author: Pierre-Elliott Bécue <becue at crans.org>
Date:   Sun Dec 31 13:12:44 2017 +0100

    Removes the time based assertion when timeout is 0 in test_keyboard.py
    
     * Expecting the duration time for the test to be between 34 and 45 ms
       is hardware-dependant, and so irrelevant for real conditions testing.
       The previous assertion expects that the test takes less than 1 second
       which is really reasonable.
---
 blessed/tests/test_keyboard.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/blessed/tests/test_keyboard.py b/blessed/tests/test_keyboard.py
index 9df528d..d4f5a75 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,

-- 
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