Browse Source

fix for macro unit tests

frabbit 11 years ago
parent
commit
1d9fde534b
2 changed files with 4 additions and 2 deletions
  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
  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  * DEALINGS IN THE SOFTWARE.
  * DEALINGS IN THE SOFTWARE.
  */
  */
-
+#if !macro
 import python.lib.Builtin;
 import python.lib.Builtin;
 import python.internal.ArrayImpl;
 import python.internal.ArrayImpl;
 import python.lib.Types;
 import python.lib.Types;
+#end
 
 
 @:native("list")
 @:native("list")
 extern class Array<T> implements ArrayAccess<T> extends ArrayImpl {
 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 can be concatenated by using the + operator. If an operand is not a
 	String, it is passed through Std.string() first.
 	String, it is passed through Std.string() first.
 **/
 **/
+#if !macro
 import python.internal.StringImpl;
 import python.internal.StringImpl;
 import python.lib.Builtin;
 import python.lib.Builtin;
-
+#end
 extern class String extends StringImpl {
 extern class String extends StringImpl {