Fix typo in test_api.py. (GH-16119)

(cherry picked from commit 0bc17ea2f5966f429b5b8d6b4ccb9c01f1f610d0)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
1 file changed