Keep the __main__ guard last in the multipatch unit test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8fa9ac0253
commit
21bcb8a141
1 file changed
+4
-2
@@ -311,8 +311,6 @@ class ConstructorAndSchedule(unittest.TestCase):
|
|||||||
mock_backend(**options)
|
mock_backend(**options)
|
||||||
|
|
||||||
|
|
||||||
if __name__=='__main__':
|
|
||||||
unittest.main()
|
|
||||||
|
|
||||||
|
|
||||||
class InitialLevels(unittest.TestCase):
|
class InitialLevels(unittest.TestCase):
|
||||||
@@ -330,3 +328,7 @@ class InitialLevels(unittest.TestCase):
|
|||||||
((), a, None, None), ((), None, b, c)):
|
((), a, None, None), ((), None, b, c)):
|
||||||
with self.subTest(args=args), self.assertRaises(TypeError):
|
with self.subTest(args=args), self.assertRaises(TypeError):
|
||||||
f(*args)
|
f(*args)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__=='__main__':
|
||||||
|
unittest.main()
|
||||||
Reference in new issue
Block a user