diff --git a/kiplot/out_position.py b/kiplot/out_position.py index 492e11a7..e46d5aca 100644 --- a/kiplot/out_position.py +++ b/kiplot/out_position.py @@ -1,4 +1,3 @@ -import os import operator from datetime import datetime from pcbnew import (IU_PER_MM, IU_PER_MILS) diff --git a/kiplot/out_step.py b/kiplot/out_step.py index 2ef8abd4..038f07d0 100644 --- a/kiplot/out_step.py +++ b/kiplot/out_step.py @@ -1,4 +1,3 @@ -import os import re from subprocess import (check_output, STDOUT, CalledProcessError) from .error import KiPlotConfigurationError diff --git a/tests/test_plot/test_drill.py b/tests/test_plot/test_drill.py index 4d88c029..3af31e1b 100644 --- a/tests/test_plot/test_drill.py +++ b/tests/test_plot/test_drill.py @@ -36,13 +36,13 @@ def do_3Rs(conf, dir, modern): report = 'report.rpt' if modern: - pth_drl = pth_drl.replace('PTH', 'PTH_drill') - npth_drl = npth_drl.replace('PTH', 'PTH_drill') - pth_gbr_drl = pth_gbr_drl.replace('-drl', '_drill') - npth_gbr_drl = npth_gbr_drl.replace('-drl', '_drill') - pth_pdf_drl = pth_pdf_drl.replace('-drl', '_drill') - npth_pdf_drl = npth_pdf_drl.replace('-drl', '_drill') - report = '3Rs-drill_report.txt' + pth_drl = pth_drl.replace('PTH', 'PTH_drill') + npth_drl = npth_drl.replace('PTH', 'PTH_drill') + pth_gbr_drl = pth_gbr_drl.replace('-drl', '_drill') + npth_gbr_drl = npth_gbr_drl.replace('-drl', '_drill') + pth_pdf_drl = pth_pdf_drl.replace('-drl', '_drill') + npth_pdf_drl = npth_pdf_drl.replace('-drl', '_drill') + report = '3Rs-drill_report.txt' ctx.expect_out_file(os.path.join(DRILL_DIR, report)) ctx.expect_out_file(pth_drl) @@ -63,9 +63,8 @@ def do_3Rs(conf, dir, modern): def test_drill_3Rs(): - ctx = do_3Rs('drill', 'Drill_3Rs', True) + do_3Rs('drill', 'Drill_3Rs', True) def test_drill_legacy_3Rs(): - ctx = do_3Rs('drill_legacy', 'DrillLegacy_3Rs', False) - + do_3Rs('drill_legacy', 'DrillLegacy_3Rs', False)