f Leclines Python ne fonctionne pas

open('test.txt','r') as f:
    lines = f.readlines()

for line in lines:
    print(line.rstrip('\n'))
Jumping Boy