summaryrefslogtreecommitdiff
path: root/pylint/test/functional/assert_on_tuple.py
blob: a612aa47da514116f7814a938b4b2044f4425a96 (plain)
1
2
3
4
5
6
7
8
9
10
11
'''Assert check example'''

# pylint: disable=misplaced-comparison-constant
assert (1 == 1, 2 == 2), "no error"
assert (1 == 1, 2 == 2) # [assert-on-tuple]
assert 1 == 1, "no error"
assert (1 == 1, ), "no error"
assert (1 == 1, )
assert (1 == 1, 2 == 2, 3 == 5), "no error"
assert ()
assert (True, 'error msg') # [assert-on-tuple]