Fix tests on python3

This commit is contained in:
Hamilton Kibbe 2016-11-06 15:08:00 -05:00
parent d7a0f3ad2b
commit 6db0658e23
2 changed files with 2 additions and 4 deletions

View file

@ -21,8 +21,7 @@ try:
except ImportError:
import cairocffi as cairo
import math
from operator import mul, div
from operator import mul
import tempfile
import copy
import os

View file

@ -39,10 +39,9 @@ def test_size_parameter():
def test_conversion():
import copy
top_copper = read(TOP_COPPER_FILE)
assert_equal(top_copper.units, 'inch')
top_copper_inch = copy.deepcopy(top_copper)
top_copper_inch = read(TOP_COPPER_FILE)
top_copper.to_metric()
for statement in top_copper_inch.statements:
statement.to_metric()