@@ -49,7 +49,7 @@ def test_init_default(self):
4949
5050 assert model .rowCount () == 0
5151 assert model .columnCount () == 0
52- assert model .data (0 , 0 ) == None
52+ assert model .data (0 , 0 ) is None
5353
5454 def test_init_with_data (self ):
5555 """Test initialization with data"""
@@ -298,7 +298,7 @@ def test_remove_rows_boundary_conditions(self):
298298 assert model .data (0 , 0 ) == 'Alice'
299299 assert model .data (1 , 0 ) == 'Bob'
300300 # Charlie should be gone
301- assert model .data (2 , 0 ) == None
301+ assert model .data (2 , 0 ) is None
302302
303303 # Reset for next test
304304 model = ttk .TTkTableModelList (data = [row [:] for row in self .test_data ])
@@ -344,7 +344,7 @@ def test_remove_columns_boundary_conditions(self):
344344 assert model .columnCount () == original_column_count - 1
345345 assert model .data (0 , 0 ) == 'Alice' # Name still there
346346 assert model .data (0 , 1 ) == 25 # Age still there
347- assert model .data (0 , 2 ) == None # Role should be gone
347+ assert model .data (0 , 2 ) is None # Role should be gone
348348
349349 # Reset for next test
350350 model = ttk .TTkTableModelList (data = [row [:] for row in self .test_data ])
@@ -362,7 +362,7 @@ def test_remove_columns_boundary_conditions(self):
362362 # Should remove columns 1 and 2 (Age and Role), leaving only Name
363363 assert model .columnCount () == 1
364364 assert model .data (0 , 0 ) == 'Alice'
365- assert model .data (0 , 1 ) == None # Age should be gone
365+ assert model .data (0 , 1 ) is None # Age should be gone
366366
367367 # Reset for next test
368368 model = ttk .TTkTableModelList (data = [row [:] for row in self .test_data ])
0 commit comments