File tree 3 files changed +9
-9
lines changed
3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def testAffineExprEq():
42
42
# CHECK: False
43
43
print (a1 == a3 )
44
44
# CHECK: False
45
- print (a1 == None )
45
+ print (a1 is None )
46
46
# CHECK: False
47
47
print (a1 == "foo" )
48
48
Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ def testAttrEq():
56
56
print ("a1 == a2:" , a1 == a2 )
57
57
# CHECK: a1 == a3: True
58
58
print ("a1 == a3:" , a1 == a3 )
59
- # CHECK: a1 == None: False
60
- print ("a1 == None:" , a1 == None )
59
+ # CHECK: a1 is None: False
60
+ print ("a1 is None:" , a1 is None )
61
61
62
62
63
63
# CHECK-LABEL: TEST: testAttrHash
@@ -109,9 +109,9 @@ def testAttrEqDoesNotRaise():
109
109
# CHECK: False
110
110
print (a1 == not_an_attr )
111
111
# CHECK: False
112
- print (a1 == None )
112
+ print (a1 is None )
113
113
# CHECK: True
114
- print (a1 != None )
114
+ print (a1 is not None )
115
115
116
116
117
117
# CHECK-LABEL: TEST: testAttrCapsule
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ def testTypeEq():
57
57
print ("t1 == t2:" , t1 == t2 )
58
58
# CHECK: t1 == t3: True
59
59
print ("t1 == t3:" , t1 == t3 )
60
- # CHECK: t1 == None: False
61
- print ("t1 == None:" , t1 == None )
60
+ # CHECK: t1 is None: False
61
+ print ("t1 is None:" , t1 is None )
62
62
63
63
64
64
# CHECK-LABEL: TEST: testTypeHash
@@ -143,9 +143,9 @@ def testTypeEqDoesNotRaise():
143
143
# CHECK: False
144
144
print (t1 == not_a_type )
145
145
# CHECK: False
146
- print (t1 == None )
146
+ print (t1 is None )
147
147
# CHECK: True
148
- print (t1 != None )
148
+ print (t1 is not None )
149
149
150
150
151
151
# CHECK-LABEL: TEST: testTypeCapsule
You can’t perform that action at this time.
0 commit comments