Skip to content

Commit

Permalink
test_exporters3d.py -> fix deprecation warning on regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegenstein authored Sep 19, 2024
1 parent a5a290d commit 025d072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_exporters3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_export_step_assembly(self):
os.remove("assembly.step")
self.assertNotEqual(step_data.find("DRAUGHTING_PRE_DEFINED_COLOUR('red')"), -1)
self.assertNotEqual(step_data.find("DRAUGHTING_PRE_DEFINED_COLOUR('blue')"), -1)
self.assertEqual(len(re.findall("[\(\,]25.4[\,\)]", step_data)), 45)
self.assertEqual(len(re.findall("[(,]25.4[,)]", step_data)), 45)
self.assertNotEqual(step_data.find("PRODUCT('sphere',"), -1)
self.assertNotEqual(step_data.find("PRODUCT('box',"), -1)
self.assertNotEqual(step_data.find("PRODUCT('assembly',"), -1)
Expand Down

0 comments on commit 025d072

Please sign in to comment.