ソースを参照

fix for macro unit tests

frabbit 11 年 前
コミット
1d9fde534b
2 ファイル変更4 行追加2 行削除
  1. 2 1
      std/python/_std/Array.hx
  2. 2 1
      std/python/_std/String.hx

+ 2 - 1
std/python/_std/Array.hx

@@ -19,10 +19,11 @@
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  * DEALINGS IN THE SOFTWARE.
  */
-
+#if !macro
 import python.lib.Builtin;
 import python.internal.ArrayImpl;
 import python.lib.Types;
+#end
 
 @:native("list")
 extern class Array<T> implements ArrayAccess<T> extends ArrayImpl {

+ 2 - 1
std/python/_std/String.hx

@@ -31,9 +31,10 @@ package;
 	String can be concatenated by using the + operator. If an operand is not a
 	String, it is passed through Std.string() first.
 **/
+#if !macro
 import python.internal.StringImpl;
 import python.lib.Builtin;
-
+#end
 extern class String extends StringImpl {