From f645dba041785de038c5a3048072b7912d3e1649 Mon Sep 17 00:00:00 2001 From: Kamil Sopko Date: Thu, 10 Mar 2016 21:45:47 +0100 Subject: [PATCH] update formating --- tests/test_gerber_flow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_gerber_flow.py b/tests/test_gerber_flow.py index 34a2a5f8..9eac0efa 100644 --- a/tests/test_gerber_flow.py +++ b/tests/test_gerber_flow.py @@ -129,9 +129,9 @@ class GerberFlowTestCase(unittest.TestCase): #----------------------------------------- assert isinstance(cnc_obj, FlatCAMCNCjob) output_filename = "" - #get system temporary file(try create it and delete also) - with tempfile.NamedTemporaryFile(prefix="unittest.",suffix="."+cnc_name+".gcode",delete=True) as tmpfile: - output_filename = tmpfile.name + # get system temporary file(try create it and delete also) + with tempfile.NamedTemporaryFile(prefix='unittest.', suffix="." + cnc_name + '.gcode', delete=True) as tmp_file: + output_filename = tmp_file.name cnc_obj.export_gcode(output_filename) self.assertTrue(os.path.isfile(output_filename)) os.remove(output_filename)