diff options
author | Samuel Holland <samuel@sholland.org> | 2018-05-10 15:50:16 -0500 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-04-08 15:11:57 +0200 |
commit | 60a842e141fd0710873f018e0908764f08132a77 (patch) | |
tree | 05457e7f7507e615bf6b50ff6c53894c3bc1b2d5 /_pytest/conftest.py | |
parent | 3639342e26f7e890ae600e74c7661ad84abb5700 (diff) | |
download | wee-slack-60a842e141fd0710873f018e0908764f08132a77.tar.gz |
Always use the print function from Python 3
Comments are updated as well as live code.
Diffstat (limited to '_pytest/conftest.py')
-rw-r--r-- | _pytest/conftest.py | 12 |
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 |