typing tests: remove some unnecessary uses of exec()
#119005
+9
−19
Merged