Fix assertRaises usage on reflection functions which should raise NotImplementedError on Windows XP and below.
Fix assertRaises usage on reflection functions which should raise
NotImplementedError on Windows XP and below.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator