Skip to content

Commit fe630c4

Browse files
committed
Python3 compatibility
1 parent 2252384 commit fe630c4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

workflows/logging/test_logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def crashfunction():
1111
'''A function that crashes in a predictable manner.'''
1212
everything = 42
1313
nothing = 0
14-
print everything / nothing
14+
print(everything / nothing)
1515

1616
try:
1717
crashfunction()
@@ -23,7 +23,7 @@ def crashfunction():
2323
assert os.path.basename(fp) == fn
2424
assert name == 'crashfunction'
2525
assert line_number == 14 # this will break if line number in this file changes
26-
assert line == "print everything / nothing"
26+
assert line == "print(everything / nothing)"
2727

2828
def test_callback_handler_works_within_logging_framework():
2929
'''Check that the callback handler can be used by Python logging

0 commit comments

Comments
 (0)