~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_win32utils.py

  • Committer: Martin Packman
  • Date: 2011-12-05 12:45:57 UTC
  • mto: This revision was merged to the branch mainline in revision 6358.
  • Revision ID: martin.packman@canonical.com-20111205124557-aiiu8ts88zil1nzi
Variable name changes and docstring fix suggested by vila in review

Show diffs side-by-side

added added

removed removed

Lines of Context:
382
382
        def failer(*args, **kwargs):
383
383
            SetLastError(ERROR_INVALID_PARAMETER)
384
384
            return 0
385
 
        self.overrideAttr(win32utils.get_environ_unicode, "_func", failer)
 
385
        self.overrideAttr(win32utils.get_environ_unicode, "_c_function",
 
386
            failer)
386
387
        e = self.assertRaises(WindowsError,
387
388
            win32utils.get_environ_unicode, "TEST")
388
389
        self.assertEqual(e.winerror, ERROR_INVALID_PARAMETER)