
Newly imported modules with compile and/or run-time errors were not being removed from `sys.modules`. This commit modifies the Python 2.7 loader so that it follows Python's failed-initial-import logic and removes the module from `sys.modules`.
6 lines
105 B
Hy
6 lines
105 B
Hy
"This module produces an error when imported."
|
|
(defmacro a-macro [x]
|
|
(+ x 1))
|
|
|
|
(print (a-macro 'blah))
|