summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mox.py b/mox.py
index 2ffdf90..096a202 100755
--- a/mox.py
+++ b/mox.py
@@ -167,7 +167,7 @@ class PrivateAttributeError(Error):
def __str__(self):
return ("Attribute '%s' is private and should not be available in a mock "
- "object." % attr)
+ "object." % self._attr)
class ExpectedMockCreationError(Error):