Przeglądaj źródła

Tests: use fail rather than assertTrue(False)

Jason Rumney 2 lat temu
rodzic
commit
e2d59b9347
2 zmienionych plików z 1 dodań i 1 usunięć
  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

Plik diff jest za duży
+ 0 - 0
tests/test_device_config.py


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików