[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [nyx/master] Drop SHOW_RENDERED_CONTENT
commit e328b539f54e5864182255f6e556ae3b84e7e97e
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Mon Apr 11 09:03:05 2016 -0700
Drop SHOW_RENDERED_CONTENT
Dropping a global that allowed us to pause the curses screens we render,
allowing us to see what our tests generated. This was fine once upon a time but
we now render too many things for it to be useful.
---
test/__init__.py | 5 -----
1 file changed, 5 deletions(-)
diff --git a/test/__init__.py b/test/__init__.py
index 23dda15..178b79d 100644
--- a/test/__init__.py
+++ b/test/__init__.py
@@ -20,8 +20,6 @@ __all__ = [
'tracker',
]
-SHOW_RENDERED_CONTENT = None # if set, tests render content this many seconds
-
OUR_SCREEN_SIZE = None
TEST_SCREEN_SIZE = nyx.curses.Dimensions(80, 25)
@@ -84,9 +82,6 @@ def render(func, *args, **kwargs):
attr['runtime'] = time.time() - start_time
attr['content'] = nyx.curses.screenshot()
- if SHOW_RENDERED_CONTENT:
- time.sleep(SHOW_RENDERED_CONTENT)
-
with patch('nyx.curses.key_input', return_value = nyx.curses.KeyInput(27)):
nyx.curses.start(draw_func, transparent_background = True, cursor = False)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits