fix pywin32 error in tests for IPython.lib