Abstract
Employing the method which can be used to demonstrate the infinite conservation laws for the standard Korteweg–de Vries (KdV) equation, we prove that the variable-coefficient KdV equation under the Painlevé test condition also possesses the formal conservation laws.