mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Skipped unnecessary system checks in user_commands test.
This commit is contained in:
		| @@ -55,8 +55,12 @@ class CommandTests(SimpleTestCase): | ||||
|         """ | ||||
|         with self.assertRaises(CommandError): | ||||
|             management.call_command('dance', example="raise") | ||||
|         with captured_stderr() as stderr, self.assertRaises(SystemExit): | ||||
|             management.ManagementUtility(['manage.py', 'dance', '--example=raise']).execute() | ||||
|         dance.Command.requires_system_checks = False | ||||
|         try: | ||||
|             with captured_stderr() as stderr, self.assertRaises(SystemExit): | ||||
|                 management.ManagementUtility(['manage.py', 'dance', '--example=raise']).execute() | ||||
|         finally: | ||||
|             dance.Command.requires_system_checks = True | ||||
|         self.assertIn("CommandError", stderr.getvalue()) | ||||
|  | ||||
|     def test_deactivate_locale_set(self): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user