More small MockPin tweaks

This commit is contained in:
Andrew Scheller
2016-02-21 01:24:10 +00:00
parent ee7d5c5df7
commit 741a8ec7f3
2 changed files with 5 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ class MockPin(Pin):
self.clear_states()
return self
if old_pin.__class__ != cls:
raise ValueError('pin %d is already in use as a %s' % (number, old_pin.__class__))
raise ValueError('pin %d is already in use as a %s' % (number, old_pin.__class__.__name__))
return old_pin
def __repr__(self):