pep8: fix sanity for 3.12 (#81348)

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/81351/head
Abhijeet Kasurde 2 years ago committed by GitHub
parent a5ccc0124f
commit 923ede4f72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,7 +62,7 @@ def _module_setup():
fn.restype = cfg.get('restype', c_int)
# just patch simple directly callable functions directly onto the module
if not fn.argtypes or not any(argtype for argtype in fn.argtypes if type(argtype) == base_ptr_type):
if not fn.argtypes or not any(argtype for argtype in fn.argtypes if type(argtype) is base_ptr_type):
setattr(_thismod, fname, fn)
continue

@ -453,7 +453,7 @@ class TestComplexOptions:
'bar1': None, 'bar2': None, 'bar3': None, 'bar4': None}]
),
# Check for elements in sub-options
({"foobar": [{"foo": "good", "bam": "required_one_of", "bar1": [1, "good", "yes"], "bar2": ['1', 1], "bar3":['1.3', 1.3, 1]}]},
({"foobar": [{"foo": "good", "bam": "required_one_of", "bar1": [1, "good", "yes"], "bar2": ['1', 1], "bar3": ['1.3', 1.3, 1]}]},
[{'foo': 'good', 'bam1': None, 'bam2': 'test', 'bam3': None, 'bam4': None, 'bar': None, 'baz': None, 'bam': 'required_one_of',
'bar1': ["1", "good", "yes"], 'bar2': [1, 1], 'bar3': [1.3, 1.3, 1.0], 'bar4': None}]
),

Loading…
Cancel
Save