Skip to content

Conversation

@davidsoergel
Copy link
Member

No description provided.

Copy link
Contributor

@caisq caisq left a comment

Choose a reason for hiding this comment

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

Actually, can you add a mock-based test? Mock the FromString() method and let it throw a RuntimeWarning

@davidsoergel
Copy link
Member Author

Added mock-based tests.

Copy link
Contributor

@caisq caisq left a comment

Choose a reason for hiding this comment

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

Thanks!

@davidsoergel davidsoergel merged commit fe0455b into master Apr 14, 2020
@davidsoergel davidsoergel deleted the add-empty-graph-test branch April 14, 2020 01:31
bileschi pushed a commit to bileschi/tensorboard that referenced this pull request Apr 15, 2020
Under certain mysterious circumstances, attempting to parse a malformed serialized `GraphDef` can result in the raising of a `RuntimeWarning` instead of a `DecodeError`.  Here we catch both in order to treat them in the same way.
bileschi pushed a commit that referenced this pull request Apr 15, 2020
Under certain mysterious circumstances, attempting to parse a malformed serialized `GraphDef` can result in the raising of a `RuntimeWarning` instead of a `DecodeError`.  Here we catch both in order to treat them in the same way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants