Bug 15343 - Tests use depricated and removed methods like assertRegexpMatches
Summary: Tests use depricated and removed methods like assertRegexpMatches
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Python (show other bugs)
Version: 4.18.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Douglas Bagnall
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks: 15316
  Show dependency treegraph
 
Reported: 2023-03-24 00:23 UTC by Andrew Bartlett
Modified: 2023-04-19 10:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Bartlett 2023-03-24 00:23:07 UTC
assertNotEquals and assertRegexpMatches were removed in Python 3.12 so we need to stop using them or risk being caught unable to test old Samba versions on modern systems.
Comment 1 Douglas Bagnall 2023-03-24 01:06:04 UTC
Is this to backport 41aa379abb391ffab77238d65ee5ba11b9ab8538?
Comment 2 Andrew Bartlett 2023-03-26 03:43:37 UTC
Yes, as that is needed for bug #15316
Comment 3 Samba QA Contact 2023-04-05 13:03:20 UTC
This bug was referenced in samba v4-18-test:

e9f5d1c03bcb800fc6e01a11c49cf5c193d6a00c
Comment 4 Samba QA Contact 2023-04-19 10:24:20 UTC
This bug was referenced in samba v4-18-stable (Release samba-4.18.2):

e9f5d1c03bcb800fc6e01a11c49cf5c193d6a00c