blob: aec868e3ab226148e563682bbefdd408890efa16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# SPDX-License-Identifier: MIT
#
# Copyright The SCons Foundation
import SCons
from SCons.Warnings import _warningOut
import sys
DefaultEnvironment(tools=[])
# 1. call should succeed without deprecation warning
try:
SConscript('missing/SConscript', must_exist=False)
except SCons.Errors.UserError as e:
if _warningOut:
_warningOut(e)
# 2. call should succeed with deprecation warning
try:
SConscript('missing/SConscript')
except SCons.Errors.UserError as e:
if _warningOut:
_warningOut(e)
|