Tesseract doesn't deskew the output image. It makes no changes to the output image.
What it does try to do is find a local baseline to account for text that is skewed. I believe it may be capable of finding low order polynomial baselines as well to account for certain distortions. This is strictly a tool to improve OCR results. You can see the results in the output of the "hocr" renderer.
Example hocr output for a straight line with no skew:
<span class='ocr_line' id='line_1_1' title="bbox 882 131 1656 217; baseline 0 -17; x_size 87; x_descenders 17; x_ascenders 21">
Interpretation in hocr spec of "baseline":
You will get better results if you globally deskew and cleanup the image using other methods such as Leptonica's deskew function.
OCRmyPDF is a tool I develop that wraps tesseract. It can perform deskew using Leptonica before it delegates OCR to tesseract.