Răsfoiți Sursa

Tests: use fail rather than assertTrue(False)

Jason Rumney 3 ani în urmă
părinte
comite
e2d59b9347
2 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
tests/test_device_config.py


Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff