forked from Rust-related/RustPython
10 lines
207 B
Python
10 lines
207 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__"
|