[py-svn] py-trunk commit 5e999fa934c1: Fixed a typo in error.py causing it to fail on Windows.

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Sep 23 19:44:46 CEST 2009


# HG changeset patch -- Bitbucket.org
# Project py-trunk
# URL http://bitbucket.org/hpk42/py-trunk/overview/
# User Jurko <jurko.gospodnetic at docte.hr>
# Date 1252707373 -7200
# Node ID 5e999fa934c130c004da74a9ec54ae6e9b20d579
# Parent 71a55baebef055c44c2837a8ae6166905227618a
Fixed a typo in error.py causing it to fail on Windows.

--- a/py/error.py
+++ b/py/error.py
@@ -74,7 +74,7 @@ class ErrorMaker(object):
                 cls = self._geterrnoclass(errno)
             else: 
                 try: 
-                    cls = self._geterrnoclass(_winerrnomap[eno]) 
+                    cls = self._geterrnoclass(_winerrnomap[errno]) 
                 except KeyError:    
                     raise value 
             raise cls("%s%r" % (func.__name__, args))



More information about the pytest-commit mailing list