mirror of
https://github.com/Relintai/scons_gd.git
synced 2025-02-22 17:27:57 +01:00
18 lines
456 B
Python
18 lines
456 B
Python
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)
|