From f145ede01b99823a96554cad3b5e58bd186315c5 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Thu, 31 Jan 2013 17:45:57 -0500 Subject: [PATCH 1/2] CC-4905: Unit tests for Pypo -whitespace removal --- python_apps/pypo/tests/test_modify_cue_in.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/python_apps/pypo/tests/test_modify_cue_in.py b/python_apps/pypo/tests/test_modify_cue_in.py index d5049bde5..da17fd53f 100644 --- a/python_apps/pypo/tests/test_modify_cue_in.py +++ b/python_apps/pypo/tests/test_modify_cue_in.py @@ -10,7 +10,6 @@ telnet_lock = Lock() pp = PypoPush(pypoPush_q, telnet_lock) def test_modify_cue_in(): - link = pp.modify_first_link_cue_point([]) assert len(link) == 0 @@ -25,5 +24,3 @@ def test_modify_cue_in(): link = pp.modify_first_link_cue_point(link) assert len(link) == 1 - - From 149b744ba7d775b447f0d4bbf6bea84d422792cc Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Fri, 1 Feb 2013 01:40:48 -0500 Subject: [PATCH 2/2] remove using self in a static method --- python_apps/pypo/pypofetch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python_apps/pypo/pypofetch.py b/python_apps/pypo/pypofetch.py index e073efda9..2d6ad0fb5 100644 --- a/python_apps/pypo/pypofetch.py +++ b/python_apps/pypo/pypofetch.py @@ -136,7 +136,7 @@ class PypoFetch(Thread): try: lock.acquire() tn = telnetlib.Telnet(LS_HOST, LS_PORT) - self.logger.info(command) + logger.info(command) tn.write(command) tn.write('exit\n') tn.read_all()