]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
Clarified comment
authorCefn Hoile <github.com@cefn.com>
Mon, 19 Feb 2018 14:07:28 +0000 (14:07 +0000)
committerCefn Hoile <github.com@cefn.com>
Mon, 19 Feb 2018 14:07:28 +0000 (14:07 +0000)
python/testing/implementation/micropython/digitalio.py

index 74bccce9f5920e9e56f66dddd0c3d7e7f262cd40..05f7e42b3c42ae0ef5bb3fc1fcb6f21528d253ff 100644 (file)
@@ -10,7 +10,7 @@ class TestDigitalInOut(unittest.TestCase):
 
 
     def test_context_manager(self):
 
 
     def test_context_manager(self):
-        """Deinitialisation is triggered by __exit__()"""
+        """Deinitialisation is triggered by __exit__() and should dispose machine.pin reference"""
         dio = digitalio.DigitalInOut(default_pin)
         self.assertIsNotNone(dio._pin)
         with dio:
         dio = digitalio.DigitalInOut(default_pin)
         self.assertIsNotNone(dio._pin)
         with dio: