blocks: fix use of assertGreater in QA for older Python