mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09: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__"
|