We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d2a8d9 commit ba7db80Copy full SHA for ba7db80
builtin/tests/builtin.py
@@ -323,16 +323,16 @@ def gen2():
323
assert ok, "AttributeError not raised"
324
325
with open("testfile", "w") as f:
326
- print("hello", "world", sep=", ", end="!\n", file=f)
327
- print("hells", "bells", end="...", file=f, sep="_")
+ print("hello", "world", end="!\n", file=f, sep=", ")
+ print("hells", "bells", end="...", file=f)
328
print(" ~", "Brother ", "Foo", "bar", file=f, end="", sep="")
329
330
with open("testfile", "r") as f:
331
- assert f.read() == "hello, world!\nhells_bells... ~Brother Foobar"
+ assert f.read() == "hello, world!\nhells bells... ~Brother Foobar"
332
333
334
- print(1,2,3,sep=",",end=",\n", file=f)
335
- print("4","5", file=f, end="!", sep=",")
+ print(1,2,3,sep=",", flush=False, end=",\n", file=f)
+ print("4",5, file=f, end="!", flush=True, sep=",")
336
337
338
assert f.read() == "1,2,3,\n4,5!"
0 commit comments