summaryrefslogtreecommitdiff
path: root/sc/qa/uitest/chart2/tdf122398.py
diff options
context:
space:
mode:
authortagezi <lera.goncharuk@gmail.com>2022-05-27 13:00:39 +0300
committerXisco Fauli <xiscofauli@libreoffice.org>2022-05-30 09:48:46 +0200
commitc3baf2a7f48b5ee46c6792b3106cb4fedb4a2ad2 (patch)
treeba3e8c1fcdf65307d892d4420f413b8770859c89 /sc/qa/uitest/chart2/tdf122398.py
parent507a8871c25aa9b7e5a02ceb86f5c60ebccc722b (diff)
sc uitests: Cleaning up unused variables
Removed unused variables in the 'with' statement as the syntax allows the statement to be used without a variable. Removed variables like 'xcomments' and 'xseedspin', which seem to have been copied and not cleaned up. Removed variables 'gridwin' and 'xCalcDoc' if 'gridwin' is not used. Change-Id: Ia97692a0fb2e2af1d2693e09ac8f7c614360ade8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135042 Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa/uitest/chart2/tdf122398.py')
-rw-r--r--sc/qa/uitest/chart2/tdf122398.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/qa/uitest/chart2/tdf122398.py b/sc/qa/uitest/chart2/tdf122398.py
index dc054c190f4e..7f41c428f1af 100644
--- a/sc/qa/uitest/chart2/tdf122398.py
+++ b/sc/qa/uitest/chart2/tdf122398.py
@@ -16,7 +16,7 @@ from libreoffice.uno.propertyvalue import mkPropertyValues
# Bug 122398 - UI: Cannot specify min/max in axis scale or axis position. Limited between 0 and 100
class tdf122398(UITestCase):
def test_tdf122398_chart_min_max_x_axis(self):
- with self.ui_test.load_file(get_url_for_data_file("tdf122398.ods")) as calc_doc:
+ with self.ui_test.load_file(get_url_for_data_file("tdf122398.ods")):
xCalcDoc = self.xUITest.getTopFocusWindow()
gridwin = xCalcDoc.getChild("grid_window")