Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed show_progress error #1794

Merged
merged 4 commits into from Dec 16, 2020
Merged

Conversation

DKilkenny
Copy link
Contributor

Summary

Fixed show_progress error

Related Issues

Backwards incompatibilities

None

New Dependencies

None

@project-bot project-bot bot added this to In progress in OpenMDAO Dev [Read only] Dec 8, 2020
OpenMDAO Dev [Read only] automation moved this from In progress to Reviewer approved Dec 9, 2020
@@ -2586,6 +2587,10 @@ def test_check_totals_show_progress(self):
lines = stream.getvalue()
self.assertFalse("Checking derivatives with respect to" in lines)

msg = "'_ReprClass' object has no attribute 'write'"
with assert_no_warning(AttributeError, msg):
prob.check_totals(method='fd', show_progress=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need the assert here.. just doing the check_totals without specifying an out_stream suffices to show that it's working.. (it fails with a hard error without your fix... the assert doesn't do anything)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@swryan swryan merged commit 97c55f0 into OpenMDAO:master Dec 16, 2020
OpenMDAO Dev [Read only] automation moved this from Reviewer approved to Done Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

Bug related to show_progress argument in compute_totals
3 participants