Skip to content

Commit

Permalink
fix option serialization test
Browse files Browse the repository at this point in the history
  • Loading branch information
swryan committed Oct 17, 2024
1 parent 4180ff2 commit a65e85c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions openmdao/core/tests/test_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ def test_recordable_only(self):
p.setup()
p.final_setup()

self.assertDictEqual(dict(comp.options.items(recordable_only=True)), {
'always_opt': False,
'distributed': False,
'run_root_only': False
})
# no errors
opts_dict = dict(comp.options.items(recordable_only=True))

# bad opt excluded
self.assertTrue('bad' not in opts_dict)


if __name__ == '__main__':
Expand Down

0 comments on commit a65e85c

Please sign in to comment.