1# test builtin print function, using file= argument
2
3try:
4    import usys as sys
5except ImportError:
6    import sys
7
8try:
9    sys.stdout
10except AttributeError:
11    print("SKIP")
12    raise SystemExit
13
14print(file=sys.stdout)
15print("test", file=sys.stdout)
16
17try:
18    print(file=1)
19except (AttributeError, OSError):  # CPython and uPy differ in error message
20    print("Error")
21