| |
@@ -234,7 +234,7 @@
|
| |
assert master_schema_csn == consumer_schema_csn
|
| |
|
| |
# Check the error log of the supplier does not contain an error
|
| |
- regex = re.compile("must not be overwritten \(set replication log for additional info\)")
|
| |
+ regex = re.compile(r"must not be overwritten \(set replication log for additional info\)")
|
| |
res = pattern_errorlog(topology_m1c1.ms["master1"].errorlog_file, regex)
|
| |
if res is not None:
|
| |
assert False
|
| |
@@ -294,7 +294,7 @@
|
| |
|
| |
# Check the error log of the supplier does not contain an error
|
| |
# This message may happen during the learning phase
|
| |
- regex = re.compile("must not be overwritten \(set replication log for additional info\)")
|
| |
+ regex = re.compile(r"must not be overwritten \(set replication log for additional info\)")
|
| |
res = pattern_errorlog(topology_m1c1.ms["master1"].errorlog_file, regex)
|
| |
|
| |
|
| |
@@ -341,7 +341,7 @@
|
| |
assert master_schema_csn == consumer_schema_csn
|
| |
|
| |
# Check the error log of the supplier does not contain an error
|
| |
- regex = re.compile("must not be overwritten \(set replication log for additional info\)")
|
| |
+ regex = re.compile(r"must not be overwritten \(set replication log for additional info\)")
|
| |
res = pattern_errorlog(topology_m1c1.ms["master1"].errorlog_file, regex)
|
| |
if res is not None:
|
| |
assert False
|
| |
@@ -390,7 +390,7 @@
|
| |
assert master_schema_csn == consumer_schema_csn
|
| |
|
| |
# Check the error log of the supplier does not contain an error
|
| |
- regex = re.compile("must not be overwritten \(set replication log for additional info\)")
|
| |
+ regex = re.compile(r"must not be overwritten \(set replication log for additional info\)")
|
| |
res = pattern_errorlog(topology_m1c1.ms["master1"].errorlog_file, regex)
|
| |
if res is not None:
|
| |
assert False
|
| |
@@ -457,7 +457,7 @@
|
| |
|
| |
# Check the error log of the supplier does not contain an error
|
| |
# This message may happen during the learning phase
|
| |
- regex = re.compile("must not be overwritten \(set replication log for additional info\)")
|
| |
+ regex = re.compile(r"must not be overwritten \(set replication log for additional info\)")
|
| |
res = pattern_errorlog(topology_m1c1.ms["master1"].errorlog_file, regex)
|
| |
|
| |
|
| |
@@ -510,7 +510,7 @@
|
| |
|
| |
# Check the error log of the supplier does not contain an error
|
| |
# This message may happen during the learning phase
|
| |
- regex = re.compile("must not be overwritten \(set replication log for additional info\)")
|
| |
+ regex = re.compile(r"must not be overwritten \(set replication log for additional info\)")
|
| |
res = pattern_errorlog(topology_m1c1.ms["master1"].errorlog_file, regex)
|
| |
if res is not None:
|
| |
assert False
|
| |
@@ -563,7 +563,7 @@
|
| |
assert master_schema_csn == consumer_schema_csn
|
| |
|
| |
# Check the error log of the supplier does not contain an error
|
| |
- regex = re.compile("must not be overwritten \(set replication log for additional info\)")
|
| |
+ regex = re.compile(r"must not be overwritten \(set replication log for additional info\)")
|
| |
res = pattern_errorlog(topology_m1c1.ms["master1"].errorlog_file, regex)
|
| |
if res is not None:
|
| |
assert False
|
| |
@@ -630,7 +630,7 @@
|
| |
|
| |
# Check the error log of the supplier does not contain an error
|
| |
# This message may happen during the learning phase
|
| |
- regex = re.compile("must not be overwritten \(set replication log for additional info\)")
|
| |
+ regex = re.compile(r"must not be overwritten \(set replication log for additional info\)")
|
| |
res = pattern_errorlog(topology_m1c1.ms["master1"].errorlog_file, regex)
|
| |
|
| |
|
| |
@@ -686,7 +686,7 @@
|
| |
assert master_schema_csn == consumer_schema_csn
|
| |
|
| |
# Check the error log of the supplier does not contain an error
|
| |
- regex = re.compile("must not be overwritten \(set replication log for additional info\)")
|
| |
+ regex = re.compile(r"must not be overwritten \(set replication log for additional info\)")
|
| |
res = pattern_errorlog(topology_m1c1.ms["master1"].errorlog_file, regex)
|
| |
if res is not None:
|
| |
assert False
|
| |
Bug Description:
Deprecation warnings are issued by Python for the following changes:
1. https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
https://bugs.python.org/issue27364 - Deprecate invalid escape sequences in str/bytes
2. https://docs.python.org/3/whatsnew/3.7.html#deprecated-python-behavior
https://bugs.python.org/issue25988 - collections.abc.Indexable
3. https://docs.python.org/3/library/logging.html#logging.warning
https://bugs.python.org/issue13235 - logging.warn() is not documented
Fix Description:
1. Use correct escape sequences or raw strings where needed.
2. Import Callable from collections.abc instead of collections module directly.
3. Use logging.warning() instead of logging.warn().
https://pagure.io/389-ds-base/issue/50032
Reviewed by: ???