summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_arcs.py')
-rw-r--r--tests/test_arcs.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/test_arcs.py b/tests/test_arcs.py
index 04dbd15a..5c0d1e50 100644
--- a/tests/test_arcs.py
+++ b/tests/test_arcs.py
@@ -1108,6 +1108,38 @@ class DecoratorArcTest(CoverageTest):
".6 D-6 ", # MyObject
)
+ def test_bug_466(self):
+ # A bad interaction between decorators and multi-line list assignments,
+ # believe it or not...!
+ self.check_coverage("""\
+ class Parser(object):
+
+ @classmethod
+ def parse(cls):
+ formats = [ 5 ]
+
+
+ return None
+
+ Parser.parse()
+ """,
+ arcz=".1 1A A. 13 3. .5 58 8-3",
+ )
+ self.check_coverage("""\
+ class Parser(object):
+
+ @classmethod
+ def parse(cls):
+ formats = [
+ 6,
+ ]
+ return None
+
+ Parser.parse()
+ """,
+ arcz=".1 1A A. 13 3. .5 58 8-3",
+ )
+
class LambdaArcTest(CoverageTest):
"""Tests of lambdas"""