[1.7.x] Fixed #24160 -- Fixed model_regress test on Windows; refs #24007.
[1.7.x] Fixed #24160 -- Fixed model_regress test on Windows; refs #24007.

Backport of 5338ff4808c822a8b00e90154b884b7be3011e60 from master

oscaro/django,jyotsna1820/django,oscaro/django,jyotsna1820/django,jyotsna1820/django,oscaro/django,jyotsna1820/django,oscaro/django