[pywin32-checkins] pywin32/win32/test test_sspi.py,1.3,1.4
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2008-10-04 03:16:32
|
Update of /cvsroot/pywin32/pywin32/win32/test In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21832 Modified Files: test_sspi.py Log Message: Update exception handling Index: test_sspi.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/test/test_sspi.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** test_sspi.py 13 Feb 2006 14:49:31 -0000 1.3 --- test_sspi.py 4 Oct 2008 03:16:24 -0000 1.4 *************** *** 10,16 **** try: return func(*args) ! raise RuntimeError, "expecting %s failure" % (hr,) ! except win32security.error, (hr_got, func, msg): ! self.failUnlessEqual(hr_got, hr) def _doAuth(self, pkg_name): --- 10,16 ---- try: return func(*args) ! raise RuntimeError("expecting %s failure" % (hr,)) ! except win32security.error, exc: ! self.failUnlessEqual(exc.winerror, hr) def _doAuth(self, pkg_name): |