"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/ksfixtures/hacking.py" between
keystone-17.0.0.tar.gz and keystone-18.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Victoria" series (latest release).

hacking.py  (keystone-17.0.0):hacking.py  (keystone-18.0.0)
skipping to change at line 67 skipping to change at line 67
def f(bad=set(), more_bad={x for x in range(3)}, def f(bad=set(), more_bad={x for x in range(3)},
even_more_bad={1, 2, 3}): even_more_bad={1, 2, 3}):
"set and set comprehession" "set and set comprehession"
def f(bad={x: x for x in range(3)}): def f(bad={x: x for x in range(3)}):
"dict comprehension" "dict comprehension"
""", """,
'expected_errors': [ 'expected_errors': [
(7, 10, 'K001'), (7, 10, 'K001'),
(10, 15, 'K001'), (10, 15, 'K001'),
(10, 29, 'K001'), (10, 28, 'K001'),
(13, 15, 'K001'), (13, 15, 'K001'),
(16, 15, 'K001'), (16, 15, 'K001'),
(16, 31, 'K001'), (16, 31, 'K001'),
(22, 14, 'K001'), (22, 14, 'K001'),
(22, 31, 'K001'), (22, 31, 'K001'),
(22, 53, 'K001'), (22, 53, 'K001'),
(25, 14, 'K001'), (25, 14, 'K001'),
(25, 36, 'K001'), (25, 36, 'K001'),
(28, 10, 'K001'), (28, 10, 'K001'),
(28, 26, 'K001'), (28, 26, 'K001'),
skipping to change at line 89 skipping to change at line 89
(32, 10, 'K001'), (32, 10, 'K001'),
]} ]}
# NOTE(browne): This is gross, but in Python 3.4 and earlier, the ast # NOTE(browne): This is gross, but in Python 3.4 and earlier, the ast
# module returns the incorrect col_offset for two of the defined functions # module returns the incorrect col_offset for two of the defined functions
# in the code sample above. # in the code sample above.
if sys.version_info < (3, 5): if sys.version_info < (3, 5):
mutable_default_args['expected_errors'][12] = (28, 27, 'K001') mutable_default_args['expected_errors'][12] = (28, 27, 'K001')
mutable_default_args['expected_errors'][14] = (32, 11, 'K001') mutable_default_args['expected_errors'][14] = (32, 11, 'K001')
# NOTE(gmann): Python version < 3.8.2 (before Ubuntu Focal) returns
# the incorrect col_offset for below function defined in above code sample
# def f(foo, bad=[], more_bad=[x for x in range(3)]):
if sys.version_info < (3, 8, 2):
mutable_default_args['expected_errors'][2] = (10, 29, 'K001')
comments_begin_with_space = { comments_begin_with_space = {
'code': """ 'code': """
# This is a good comment # This is a good comment
#This is a bad one #This is a bad one
# This is alright and can # This is alright and can
# be continued with extra indentation # be continued with extra indentation
# if that's what the developer wants. # if that's what the developer wants.
""", """,
 End of changes. 2 change blocks. 
1 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)