Merge "Raise hacking minimum to 3.0.1"

This commit is contained in:
Zuul 2020-05-25 13:20:17 +00:00 committed by Gerrit Code Review
commit ad1eb1be0a
4 changed files with 10 additions and 12 deletions

View File

@ -11,7 +11,6 @@ fixtures==3.0.0
flake8==2.5.5
gitdb==0.6.4
GitPython==1.0.1
hacking==2.0.0
imagesize==0.7.1
iso8601==0.1.11
Jinja2==2.10

View File

@ -356,12 +356,12 @@ class _OptFormatter(object):
"""
self.output_file.write(s)
def writelines(self, l):
def writelines(self, lines):
"""Write an arbitrary sequence of strings to the output file.
:param l: a list of arbitrary strings
:param lines: a list of arbitrary strings
"""
self.output_file.writelines(l)
self.output_file.writelines(lines)
def _cleanup_opts(read_opts):

View File

@ -437,7 +437,7 @@ class GeneratorTestCase(base.BaseTestCase):
''')),
('choices_opt',
dict(opts=[('test', [(None, [opts['choices_opt']])])],
expected='''[DEFAULT]
expected="""[DEFAULT]
#
# From test
@ -451,7 +451,7 @@ class GeneratorTestCase(base.BaseTestCase):
# b - <No description provided>
# c - <No description provided>
#choices_opt = a
''')),
""")),
('deprecated opt without deprecated group',
dict(opts=[('test',
[(groups['foo'],
@ -852,13 +852,13 @@ class GeneratorTestCase(base.BaseTestCase):
# string with bad default (string value)
#string_type_with_bad_default = 4096
''')),
('str_opt_str_group',
('str_opt_str_group',
dict(opts=[('test', [('foo',
[opts['str_opt']]),
(groups['foo'],
[opts['int_opt']])]),
('foo', [('foo',
[opts['bool_opt']])])],
[opts['bool_opt']])])],
expected='''[DEFAULT]
@ -888,7 +888,7 @@ class GeneratorTestCase(base.BaseTestCase):
# Maximum value: 20
#int_opt = 10
''')),
('opt_str_opt_group',
('opt_str_opt_group',
dict(opts=[('test', [(groups['foo'],
[opts['int_opt']]),
('foo',
@ -924,7 +924,7 @@ class GeneratorTestCase(base.BaseTestCase):
# a string (string value)
#str_opt = foo bar
''')),
('opt_with_DeprecatedOpt',
('opt_with_DeprecatedOpt',
dict(opts=[('test', [(None, [opts['opt_with_DeprecatedOpt']])])],
expected='''[DEFAULT]

View File

@ -2,8 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
flake8>=3.6.0,<3.8.0 # MIT
hacking>=2.0.0,<2.1.0 # Apache-2.0
hacking>=3.0.1,<3.1.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
testscenarios>=0.4 # Apache-2.0/BSD