From b3700f61baca9920c421257d1cd8bb00c44d51bc Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 22 Nov 2018 00:15:14 -0800 Subject: Fix formatting of print() calls --- doc/en/example/special.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/en/example/special.rst') diff --git a/doc/en/example/special.rst b/doc/en/example/special.rst index 1fc32f6c8..524ae7883 100644 --- a/doc/en/example/special.rst +++ b/doc/en/example/special.rst @@ -13,7 +13,7 @@ calls it:: @pytest.fixture(scope="session", autouse=True) def callattr_ahead_of_alltests(request): - print ("callattr_ahead_of_alltests called") + print("callattr_ahead_of_alltests called") seen = set([None]) session = request.node for item in session.items: @@ -31,20 +31,20 @@ will be called ahead of running any tests:: class TestHello(object): @classmethod def callme(cls): - print ("callme called!") + print("callme called!") def test_method1(self): - print ("test_method1 called") + print("test_method1 called") def test_method2(self): - print ("test_method1 called") + print("test_method1 called") class TestOther(object): @classmethod def callme(cls): - print ("callme other called") + print("callme other called") def test_other(self): - print ("test other") + print("test other") # works with unittest as well ... import unittest @@ -52,10 +52,10 @@ will be called ahead of running any tests:: class SomeTest(unittest.TestCase): @classmethod def callme(self): - print ("SomeTest callme called") + print("SomeTest callme called") def test_unit1(self): - print ("test_unit1 method called") + print("test_unit1 method called") If you run this without output capturing:: -- cgit v1.2.3