Damien George
6 years ago
2 changed files with 26 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||
# test builtin print function, using file= argument |
|||
|
|||
import sys |
|||
|
|||
try: |
|||
sys.stdout |
|||
except AttributeError: |
|||
print('SKIP') |
|||
raise SystemExit |
|||
|
|||
print(file=sys.stdout) |
|||
print('test', file=sys.stdout) |
|||
|
|||
try: |
|||
print(file=1) |
|||
except (AttributeError, OSError): # CPython and uPy differ in error message |
|||
print('Error') |
Loading…
Reference in new issue