diff --git a/python/paddle/tests/test_model.py b/python/paddle/tests/test_model.py index abeb83391751bea0ebe5d858272a167ff6570723..f90ff0c99af959ab7cf4c15f5856dde0b67503dd 100644 --- a/python/paddle/tests/test_model.py +++ b/python/paddle/tests/test_model.py @@ -169,7 +169,7 @@ class TestModel(unittest.TestCase): @classmethod def setUpClass(cls): if not fluid.is_compiled_with_cuda(): - cls.skipTest('module not tested when ONLY_CPU compling') + cls().skipTest('module not tested when ONLY_CPU compling') cls.device = paddle.set_device('gpu') fluid.enable_dygraph(cls.device)