The accuracy of calculation of spectral line shapes in one-dimensional approximation is studied analytically in several limiting cases for arbitrary collision kernel and numerically in the rigid spheres model. It is shown that the deviation of the line profile is maximal in the center of the line in case of large perturber mass and intermediate values of collision frequency. For moderate masses of buffer molecules the error of one-dimensional approximation is found not to exceed 5%.