Explorar el Código

update formating

Kamil Sopko hace 10 años
padre
commit
f645dba041
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      tests/test_gerber_flow.py

+ 3 - 3
tests/test_gerber_flow.py

@@ -129,9 +129,9 @@ class GerberFlowTestCase(unittest.TestCase):
         #-----------------------------------------
         #-----------------------------------------
         assert isinstance(cnc_obj, FlatCAMCNCjob)
         assert isinstance(cnc_obj, FlatCAMCNCjob)
         output_filename = ""
         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)
         cnc_obj.export_gcode(output_filename)
         self.assertTrue(os.path.isfile(output_filename))
         self.assertTrue(os.path.isfile(output_filename))
         os.remove(output_filename)
         os.remove(output_filename)