summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_code.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_code.py')
-rw-r--r--Lib/test/test_code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py
index 55ba30a..24d27c0 100644
--- a/Lib/test/test_code.py
+++ b/Lib/test/test_code.py
@@ -344,7 +344,7 @@ class CodeTest(unittest.TestCase):
# get assigned the first_lineno but they don't have other positions.
# There is no easy way of inferring them at that stage, so for now
# we don't support it.
- self.assertTrue(all(positions) or not any(positions))
+ self.assertTrue(positions.count(None) in [0, 4])
if not any(positions):
artificial_instructions.append(instr)