Skip to content

Commit

Permalink
adding unit tests to the fix
Browse files Browse the repository at this point in the history
  • Loading branch information
StenGruener committed Nov 29, 2023
1 parent e552f59 commit 7668569
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ NOTE: The 4.0.0 Release of SCons dropped Python 2.7 Support
NOTE: 4.3.0 now requires Python 3.6.0 and above. Python 3.5.x is no longer supported

RELEASE VERSION/DATE TO BE FILLED IN LATER
From Sten Grüner:
- Fix of --debug=sconscript option to return exist statements when using return
statement with stop flag enabled

From Michał Górny:
- Remove unecessary dependencies on pypi packages from setup.cfg
Expand Down
12 changes: 12 additions & 0 deletions test/option/debug-sconscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@
'scons: Exiting %s%sSConstruct' % (wpath, os.sep)
]
test.must_contain_all_lines(test.stdout(), expect)

# Ensure that reutrns with stop are handled properly

test.write('SConstruct', """\
foo = "bar"
Return("foo", stop=True)
print("SConstruct")
""")

test.run(arguments="--debug=sconscript .")
test.must_contain_all_lines(test.stdout(), expect)

test.pass_test()

# Local Variables:
Expand Down

0 comments on commit 7668569

Please sign in to comment.