gh-127873: Only check sys.flags.ignore_environment for PYTHON* env vars (#127877)

This commit is contained in:
Hugo van Kemenade 2025-01-21 18:10:08 +02:00 committed by GitHub
parent 13475e0a5a
commit 05d12eecbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 94 additions and 65 deletions

View file

@ -766,6 +766,7 @@ class CommandLineTestsBase:
rc, out, err = self.assertRunNotOK('-q', '-d', 'dinsdale', self.pkgdir)
self.assertRegex(out, b'File "dinsdale')
@support.force_not_colorized
def test_d_runtime_error(self):
bazfn = script_helper.make_script(self.pkgdir, 'baz', 'raise Exception')
self.assertRunOK('-q', '-d', 'dinsdale', self.pkgdir)