Kaynağa Gözat

Tests: use fail rather than assertTrue(False)

Jason Rumney 3 yıl önce
ebeveyn
işleme
e2d59b9347
2 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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...")
         print("getting last iteration...")
         try:
         try:
             result = await loop.__anext__()
             result = await loop.__anext__()
-            self.assertTrue(False)
+            self.fail("Should have raised an exception to quit the loop")
         # Check that the loop terminated
         # Check that the loop terminated
         except StopAsyncIteration:
         except StopAsyncIteration:
             pass
             pass

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
tests/test_device_config.py


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor