diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/functional/r/regression_02/regression_8207.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/functional/r/regression_02/regression_8207.py b/tests/functional/r/regression_02/regression_8207.py new file mode 100644 index 000000000..6538018bc --- /dev/null +++ b/tests/functional/r/regression_02/regression_8207.py @@ -0,0 +1,14 @@ +"""Regression test for 8207.""" + +# pylint: disable=missing-docstring,too-few-public-methods + +class Example: + def __init__(self): + self.offset = -10 + + def minus_offset(self): + return { + (x, x): value + for x, row in enumerate([(5, 10), (20, 30)]) + for y, value in enumerate(row, -self.offset) + } |