Explorar o código

Tests: use fail rather than assertTrue(False)

Jason Rumney %!s(int64=3) %!d(string=hai) anos
pai
achega
e2d59b9347
Modificáronse 2 ficheiros con 1 adicións e 1 borrados
  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

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
tests/test_device_config.py


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio