Skip to content

Commit

Permalink
Remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Feb 15, 2015
1 parent ac0c2e9 commit f5fa84d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions chess/uci.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,13 +499,10 @@ def __init__(self, process):
self.info_handlers = []

def _send(self, buf):
print(">>>", buf.rstrip()) # XXX
self.process.stdin.write(buf)
self.process.stdin.flush()

def _received(self, buf):
print("<<<", buf) # XXX

command_and_args = buf.split(None, 1)
if not command_and_args:
return
Expand Down
10 changes: 0 additions & 10 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from __future__ import print_function

import chess
import chess.polyglot
import chess.pgn
Expand Down Expand Up @@ -1119,16 +1117,11 @@ def test_scan_headers(self):
class StockfishTestCase(unittest.TestCase):

def setUp(self):
print("StockfishTestCase::setUp")
self.engine = chess.uci.popen_engine("/usr/games/stockfish")
print("StockfishTestCase::setUp | after popen")
self.engine.uci()
print("StockfishTestCase::setUp | after uci")

def tearDown(self):
print("StockfishTestCase::tearDown")
self.engine.quit()
print("StockfishTestCase::tearDown | after teardown")

def test_bratko_kopec(self):
epds = [
Expand All @@ -1146,13 +1139,10 @@ def test_bratko_kopec(self):
self.assertEqual(result[0], operations["bm"], operations["id"])

def test_async(self):
print("StockfishTestCase::test_async")
self.engine.ucinewgame()
print("StockfishTestCase::test_async | after ucinewgame")
command = self.engine.go(movetime=1000, async_callback=True)
self.assertFalse(command.is_done())
command.wait()
print("StockfishTestCase::test_async | after wait")
self.assertTrue(command.is_done())

def test_async_callback(self):
Expand Down

0 comments on commit f5fa84d

Please sign in to comment.