By using the Picard-Fuchs equation and the property of Chebyshev space to the discontinuous differential system, we obtain an upper bound of the number of limit cycles for the nongeneric quadratic reversible system when it is perturbed inside all discontinuous polynomials with degree n.The Hamiltonian triangle:ż = −iz +z 2 .The reversible system:ż = −iz + (2b + 1)z 2 + 2|z| 2 + bz 2 , b = −1.The generic Lotka-Volterra system:Under the perturbations of continuous polynomials of degree n, Horozov and Iliev [6] proved that the number of limit cycles for Q H 3 and Hamiltonian triangle does not exceed 5n + 15, and Zhao et al. [21] proved that the number of limit cycles for reversible and generic Lotka-Volterra systems does not exceed 7n.Let z = x + iy and by a linear transformation, the reversible system can be written [21]: