diff options
Diffstat (limited to 'tests/cmdline/cmd_file_variable.py')
| -rw-r--r-- | tests/cmdline/cmd_file_variable.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/cmdline/cmd_file_variable.py b/tests/cmdline/cmd_file_variable.py new file mode 100644 index 000000000..6cac6744d --- /dev/null +++ b/tests/cmdline/cmd_file_variable.py @@ -0,0 +1,5 @@ +# Test that __file__ is set correctly for script execution +try: + print("__file__ =", __file__) +except NameError: + print("__file__ not defined") |
