I have a linear model $y=ax+b$. I have fit the relations using two data sets. I have found that estimate of $a$ from the two data sets are similar, but that the uncertainty of $a$ is much larger in one of the data sets. I am using the $\chi^2$ test of variance to show this. The test statistic is $$T=(N-1)(s/\sigma_0)^2$$ where $N$ is the number of points, $s$ is the standard deviation of $a$ from one of the data sets, and $\sigma^2$ is the standard deviation of $a$ from the other data set. I calculate $T$ and compare it to the $\chi^2$ distribution and find a p-value of $1e\mathrm{-}5$.
However, I know that $y=ax+b$ is heteroskedastic. Does this impact the test?