소스 검색

Ignore sqla-migrate inspect.getargspec deprecation warnings on py36

The 'message' argument is a regex so you need to escape brackets and the
likes. Strange that this worked on py27.

This was coincidentally fixed by Ib9f735216773224f91ac7f49fbe2eee119670872
in Train but this change is backportable while that one is not.

Conflicts:
      nova/tests/fixtures.py

NOTE(mriedem): The conflict is due to not having change
Ib9f735216773224f91ac7f49fbe2eee119670872 in Stein, as
noted above.

Change-Id: Ia1f0fa6a46bdd0a87d40721937355b2cc887f1c9
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Related-Bug: #1813147
(cherry picked from commit 79ee80d159)
tags/19.1.0
Stephen Finucane 5 달 전
부모
커밋
58ad6aba98
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      nova/tests/fixtures.py

+ 1
- 1
nova/tests/fixtures.py 파일 보기

@@ -864,7 +864,7 @@ class WarningsFixture(fixtures.Fixture):
# TODO(mriedem): Change (or remove) this DeprecationWarning once
# https://bugs.launchpad.net/sqlalchemy-migrate/+bug/1814288 is fixed.
warnings.filterwarnings(
'ignore', message='inspect\.getargspec\(\) is deprecated',
'ignore', message=r'inspect.getargspec\(\) is deprecated',
category=DeprecationWarning,
module='migrate.versioning.script.py')


Loading…
취소
저장