summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/uitest/calc_tests4/trackedChanges.py2
-rw-r--r--sc/workben/cache.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/sc/qa/uitest/calc_tests4/trackedChanges.py b/sc/qa/uitest/calc_tests4/trackedChanges.py
index 0f38f9f3042c..5ad8c3f3a9d2 100644
--- a/sc/qa/uitest/calc_tests4/trackedChanges.py
+++ b/sc/qa/uitest/calc_tests4/trackedChanges.py
@@ -96,7 +96,7 @@ class CalcTrackedChanges(UITestCase):
def test_Tdf153096(self):
- with self.ui_test.create_doc_in_start_center("calc") as document:
+ with self.ui_test.create_doc_in_start_center("calc"):
self.ui_test.wait_until_child_is_available("grid_window")
xCalcDoc = self.xUITest.getTopFocusWindow()
gridwin = xCalcDoc.getChild("grid_window")
diff --git a/sc/workben/cache.py b/sc/workben/cache.py
index ba96abe9758b..982d80c510d3 100644
--- a/sc/workben/cache.py
+++ b/sc/workben/cache.py
@@ -51,7 +51,8 @@ def parse_block(data, index):
def parse_column(data, index):
- column_index = struct.unpack('Q', data[index:index+8])[0]
+ # get the column index
+ struct.unpack('Q', data[index:index+8])[0]
index += 8
column_entries = struct.unpack('Q', data[index:index+8])[0]
index += 8