mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 03:04:38 +08:00
10 lines
209 B
Python
10 lines
209 B
Python
# when name.py is run __name__ should equal to __main__
|
|
assert __name__ == "__main__"
|
|
|
|
from import_name import import_func
|
|
|
|
# __name__ should be set to import_func
|
|
import_func()
|
|
|
|
assert __name__ == "__main__"
|