diff --git a/Simulation/FastShower/FastCaloSim/python/AddNoiseCellBuilderTool_test.py b/Simulation/FastShower/FastCaloSim/python/AddNoiseCellBuilderTool_test.py
index 55cb3221c875c3f6664de2da0f8f5a57792168a3..adb8e9606eef23b81649d87ab86e32cbe6b28546 100644
--- a/Simulation/FastShower/FastCaloSim/python/AddNoiseCellBuilderTool_test.py
+++ b/Simulation/FastShower/FastCaloSim/python/AddNoiseCellBuilderTool_test.py
@@ -60,7 +60,7 @@ def make_calo_cells (detStore, desc):
     for addr, (e, gain, exp) in desc.items():
         cellid = idhelper.cell_id (*addr)
         elt = mgr.get_element (cellid)
-        assert elt != None
+        assert elt is not None
         if addr[0] == TILE:
             cc = ROOT.TileCell (elt, e)
         else:
@@ -156,7 +156,7 @@ def testCfg (configFlags):
 
     from FastCaloSim.AddNoiseCellBuilderToolConfig import AddNoiseCellBuilderToolCfg
     acc = AddNoiseCellBuilderToolCfg (configFlags)
-    tool = acc.popPrivateTools()
+    acc.popPrivateTools()
     result.merge (acc)
 
     result.addEventAlgo (TestAlg ('TestAlg'))