diff --git a/Framework/PythonInterface/test/python/plugins/algorithms/ApplyPaalmanPingsCorrectionTest.py b/Framework/PythonInterface/test/python/plugins/algorithms/ApplyPaalmanPingsCorrectionTest.py
index 581f3c7e413c935893d8e79bcba6f42cb0f58a52..c3ebe75b86287c76ade0acba92495237588a2080 100644
--- a/Framework/PythonInterface/test/python/plugins/algorithms/ApplyPaalmanPingsCorrectionTest.py
+++ b/Framework/PythonInterface/test/python/plugins/algorithms/ApplyPaalmanPingsCorrectionTest.py
@@ -49,7 +49,7 @@ class ApplyPaalmanPingsCorrectionTest(unittest.TestCase):
         """
 
         DeleteWorkspace(self._sample_ws)
-        DeleteWorkspace(self._can_ws)
+        DeleteWorkspace(mtd['can_ws'])
         DeleteWorkspace(self._corrections_ws)