aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/conftest.py')
-rw-r--r--_pytest/conftest.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/_pytest/conftest.py b/_pytest/conftest.py
index b32369a..3a972e8 100644
--- a/_pytest/conftest.py
+++ b/_pytest/conftest.py
@@ -1,3 +1,5 @@
+from __future__ import print_function
+
import json
import pytest
import sys
@@ -18,7 +20,7 @@ class fakewebsocket(object):
def recv(self):
return json.dumps(self.returndata.pop(0))
def send(self, data):
- print "websocket received: {}".format(data)
+ print("websocket received: {}".format(data))
return
@pytest.fixture
@@ -55,13 +57,13 @@ class FakeWeechat():
def __init__(self):
pass
- #print "INITIALIZE FAKE WEECHAT"
+ #print("INITIALIZE FAKE WEECHAT")
def prnt(*args):
output = "("
for arg in args:
if arg != None:
output += "{}, ".format(arg)
- print "w.prnt {}".format(output)
+ print("w.prnt {}".format(output))
def hdata_get(*args):
return "0x000001"
def hdata_pointer(*args):
@@ -85,9 +87,9 @@ class FakeWeechat():
def __getattr__(self, name):
def method(*args):
pass
- #print "called {}".format(name)
+ #print("called {}".format(name))
#if args:
- # print "\twith args: {}".format(args)
+ # print("\twith args: {}".format(args))
return method
@pytest.fixture