A t-test is just a special case of ANOVA. Take data that you would regularly do a t-test for and instead do ANOVA (2 groups, oneway) and you will notice that the p-value is exactly the same (if the t-test was 2 tailed) and the F statistic from the ANOVA is the square of the t statistic from the t-test (exactly equal if doing a pooled t-test, approximately if using the approximate t test).
So "blocking" a t-test is really just doing an ANOVA with blocking as well.
If you don't want to assume equal variances (the pooled t-test) then you can still do a mixed effects model instead of the ANOVA and just allow for unequal variances in the mixed effects model.