Debian Codegraph @

test/SConscript/fixture/SConstruct

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