Sfoglia il codice sorgente

Tests: use fail rather than assertTrue(False)

Jason Rumney 3 anni fa
parent
commit
e2d59b9347
2 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tests/test_device.py
  2. 0 0
      tests/test_device_config.py

+ 1 - 1
tests/test_device.py

@@ -600,7 +600,7 @@ class TestDevice(IsolatedAsyncioTestCase):
         print("getting last iteration...")
         try:
             result = await loop.__anext__()
-            self.assertTrue(False)
+            self.fail("Should have raised an exception to quit the loop")
         # Check that the loop terminated
         except StopAsyncIteration:
             pass

File diff suppressed because it is too large
+ 0 - 0
tests/test_device_config.py


Some files were not shown because too many files changed in this diff