Преглед изворни кода

Tests: use fail rather than assertTrue(False)

Jason Rumney пре 3 година
родитељ
комит
e2d59b9347
2 измењених фајлова са 1 додато и 1 уклоњено
  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

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
tests/test_device_config.py


Неке датотеке нису приказане због велике количине промена