Skip to content

Commit

Permalink
cleanup of some unnecessary teardown methods
Browse files Browse the repository at this point in the history
  • Loading branch information
robfalck committed Jan 26, 2021
1 parent 9927ee5 commit 202ccff
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
@use_tempdirs
class TestBrachExecCompODE(unittest.TestCase):

def tearDown(self):
if os.path.exists('dymos_solution.db'):
os.remove('dymos_solution.db')
if os.path.exists('dymos_simulation.db'):
os.remove('dymos_simulation.db')

def _make_problem(self, transcription='gauss-lobatto', num_segments=8, transcription_order=3,
compressed=True, optimizer='SLSQP', run_driver=True, force_alloc_complex=False,
solve_segments=False):
Expand Down Expand Up @@ -188,7 +182,6 @@ def test_invalid_callable(self):
self.assertEqual(expected, str(e.exception))


@use_tempdirs
class CallableBrachistochroneODE(om.ExplicitComponent):

def initialize(self):
Expand Down Expand Up @@ -239,12 +232,6 @@ class TestBrachCallableODE(unittest.TestCase):
def setUp(self):
self.ode = CallableBrachistochroneODE(num_nodes=1)

def tearDown(self):
if os.path.exists('dymos_solution.db'):
os.remove('dymos_solution.db')
if os.path.exists('dymos_simulation.db'):
os.remove('dymos_simulation.db')

def _make_problem(self, transcription='gauss-lobatto', num_segments=8, transcription_order=3,
compressed=True, optimizer='SLSQP', run_driver=True,
force_alloc_complex=False,
Expand Down Expand Up @@ -350,7 +337,3 @@ def test_in_series(self):
self._make_problem(transcription='gauss-lobatto', compressed=False)
self._make_problem(transcription='radau-ps', compressed=False)
self.run_asserts()


if __name__ == '__main__':
unittest.main()

0 comments on commit 202ccff

Please sign in to comment.