Fix tests on python3
This commit is contained in:
parent
d7a0f3ad2b
commit
6db0658e23
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue