Project

General

Profile

Actions

Bug #48152

closed
RD RD

mgr_test_case: skipTest is an instance method, not a class method

Bug #48152: mgr_test_case: skipTest is an instance method, not a class method

Added by Rishabh Dave about 6 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
octopus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v16.0.0-7168-gf7962b1767
Released In:
v16.2.0~852
Upkeep Timestamp:
2025-07-14T19:24:51+00:00

Description

When the block calling skipTest() (as class method) is executed, following traceback can be found -

2020-11-09 18:24:29,193.193 INFO:__main__:======================================================================
2020-11-09 18:24:29,193.193 INFO:__main__:ERROR: setUpClass (tasks.mgr.test_dashboard.TestDashboard)
2020-11-09 18:24:29,193.193 INFO:__main__:----------------------------------------------------------------------
2020-11-09 18:24:29,193.193 INFO:__main__:Traceback (most recent call last):
2020-11-09 18:24:29,193.193 INFO:__main__:  File "/home/rishabh/repos/ceph/minor/qa/tasks/mgr/mgr_test_case.py", line 102, in setUpClass
2020-11-09 18:24:29,193.193 INFO:__main__:    if len(cls.mgr_cluster.mgr_ids) < cls.MGRS_REQUIRED:
2020-11-09 18:24:29,193.193 INFO:__main__:TypeError: skipTest() missing 1 required positional argument: 'reason'

unittest.TestCase.skipTest() is an instance method and not a class method. So the "reason" provided as str ends up being accepted as the instance and therefore, the call is short of one parameter.


Related issues 1 (0 open — 1 closed)

Copied to mgr - Backport #48279: octopus: mgr_test_case: skipTest is an instance method, not a class methodResolvedRishabh Dave

Actions

RD Updated by Rishabh Dave about 6 years ago Actions #1

  • Status changed from Fix Under Review to Resolved

RD Updated by Rishabh Dave about 6 years ago Actions #2

  • Status changed from Resolved to Fix Under Review

RD Updated by Rishabh Dave about 6 years ago Actions #3

  • Status changed from Fix Under Review to Pending Backport

RD Updated by Rishabh Dave about 6 years ago Actions #4

  • Backport set to octopus

RD Updated by Rishabh Dave about 6 years ago Actions #5

  • Copied to Backport #48279: octopus: mgr_test_case: skipTest is an instance method, not a class method added

NC Updated by Nathan Cutler almost 6 years ago Actions #6

  • Status changed from Pending Backport to Resolved

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

UB Updated by Upkeep Bot over 1 year ago Actions #7

  • Merge Commit set to f7962b176725682ea49c25c24ee8981730eb5085
  • Fixed In set to v16.0.0-7168-gf7962b1767
  • Released In set to v16.2.0~852
  • Upkeep Timestamp set to 2025-07-14T19:24:51+00:00
Actions

Also available in: PDF Atom