diff options
Diffstat (limited to 'gerber')
-rw-r--r-- | gerber/render/cairo_backend.py | 3 | ||||
-rw-r--r-- | gerber/tests/test_rs274x.py | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/gerber/render/cairo_backend.py b/gerber/render/cairo_backend.py index 810351b..6e95446 100644 --- a/gerber/render/cairo_backend.py +++ b/gerber/render/cairo_backend.py @@ -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
diff --git a/gerber/tests/test_rs274x.py b/gerber/tests/test_rs274x.py index d5acfe8..4c69446 100644 --- a/gerber/tests/test_rs274x.py +++ b/gerber/tests/test_rs274x.py @@ -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() |