Automated tests use a deprecated method, assertRaisesRegexp()

Bug #1655461 reported by Richard G. Pioso on 2017-01-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-dracclient
Low
Unassigned

Bug Description

The following automated test source modules use a deprecated method, assertRaisesRegexp():

.../python-dracclient/dracclient/tests:
    test_bios.py
    test_utils.py

When python-dracclient's automated tests are executed with tox, the following warnings are emitted:

/home/user/python-dracclient/dracclient/tests/test_bios.py:417: DeprecationWarning: Please use assertRaisesRegex instead.
../home/user/python-dracclient/dracclient/tests/test_utils.py:54: DeprecationWarning: Please use assertRaisesRegex instead.

Dmitry Tantsur (divius) wrote :

IIRC the problem is that assertRaisesRegex is not in Python 2..

Changed in python-dracclient:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers