This is for py3 compatibility #18506 (cherry picked from commit 59227d8c31)
59227d8c31
* Add a framework, fixtures and test for common synchronize scenarios. Addresses #15905