Ticket #15370: admin_scripts_warnings.diff

File admin_scripts_warnings.diff, 843 bytes (added by Miloslav Pojman, 14 years ago)
  • tests/regressiontests/admin_scripts/tests.py

    diff --git a/tests/regressiontests/admin_scripts/tests.py b/tests/regressiontests/admin_scripts/tests.py
    index 76cecc0..f86fe26 100644
    a b class AdminScriptTestCase(unittest.TestCase):  
    109109        executable = sys.executable
    110110        arg_string = ' '.join(['%s' % arg for arg in args])
    111111        if ' ' in executable:
    112             cmd = '""%s" "%s" %s"' % (executable, script, arg_string)
     112            cmd = '""%s" -W all::ImportWarning "%s" %s"' % (executable, script, arg_string)
    113113        else:
    114             cmd = '%s "%s" %s' % (executable, script, arg_string)
     114            cmd = '%s -W all::ImportWarning "%s" %s' % (executable, script, arg_string)
    115115
    116116        # Move to the test directory and run
    117117        os.chdir(test_dir)
Back to Top