diff options
author | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2016-11-06 15:08:00 -0500 |
---|---|---|
committer | Hamilton Kibbe <hamilton.kibbe@gmail.com> | 2016-11-06 15:08:00 -0500 |
commit | 6db0658e2336d6405fe1a6acd10dfab39ba8e7ff (patch) | |
tree | fefb78b5f65cc82895a465aefc803f6998f03f49 | |
parent | d7a0f3ad2b62402f4af9abe2729f9a7c14814fe6 (diff) | |
download | gerbonara-6db0658e2336d6405fe1a6acd10dfab39ba8e7ff.tar.gz gerbonara-6db0658e2336d6405fe1a6acd10dfab39ba8e7ff.tar.bz2 gerbonara-6db0658e2336d6405fe1a6acd10dfab39ba8e7ff.zip |
Fix tests on python3
-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() |