Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a62225a commit b8e23c4Copy full SHA for b8e23c4
packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_figure.py
@@ -215,5 +215,10 @@ def test_set_subplots(self):
215
)
216
assert fig1.layout == fig1_sp.layout
217
# Test that calling on a figure that already has subplots throws an error.
218
- with self.assertRaisesRegex(ValueError, "^This figure already has subplots\.$"):
+ raised = False
219
+ try:
220
fig1.set_subplots(2, 3)
221
+ except ValueError as e:
222
+ assert e.args[0] == "This figure already has subplots."
223
+ raised = True
224
+ assert raised
0 commit comments