Skip to content

Commit d3d8d53

Browse files
committed
tests: test_pdb: fix print statements
1 parent 27d2683 commit d3d8d53

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

testing/test_pdb.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def test_pdb_interaction_capturing_simple(self, testdir):
345345
import pytest
346346
def test_1():
347347
i = 0
348-
print ("hello17")
348+
print("hello17")
349349
pytest.set_trace()
350350
x = 3
351351
"""
@@ -383,7 +383,7 @@ def test_pdb_and_capsys(self, testdir):
383383
"""
384384
import pytest
385385
def test_1(capsys):
386-
print ("hello1")
386+
print("hello1")
387387
pytest.set_trace()
388388
"""
389389
)
@@ -420,7 +420,7 @@ def test_set_trace_capturing_afterwards(self, testdir):
420420
def test_1():
421421
pdb.set_trace()
422422
def test_2():
423-
print ("hello")
423+
print("hello")
424424
assert 0
425425
"""
426426
)
@@ -461,10 +461,10 @@ def test_pdb_interaction_capturing_twice(self, testdir):
461461
import pytest
462462
def test_1():
463463
i = 0
464-
print ("hello17")
464+
print("hello17")
465465
pytest.set_trace()
466466
x = 3
467-
print ("hello18")
467+
print("hello18")
468468
pytest.set_trace()
469469
x = 4
470470
"""
@@ -525,7 +525,7 @@ def test_enter_pdb_hook_is_called(self, testdir):
525525
"""
526526
def pytest_enter_pdb(config):
527527
assert config.testing_verification == 'configured'
528-
print 'enter_pdb_hook'
528+
print('enter_pdb_hook')
529529
530530
def pytest_configure(config):
531531
config.testing_verification = 'configured'
@@ -562,7 +562,7 @@ def test_pdb_custom_cls_with_settrace(self, testdir, monkeypatch):
562562
custom_pdb="""
563563
class CustomPdb(object):
564564
def set_trace(*args, **kwargs):
565-
print 'custom set_trace>'
565+
print('custom set_trace>')
566566
"""
567567
)
568568
p1 = testdir.makepyfile(

0 commit comments

Comments
 (0)