summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_exceptions.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-01-22 17:36:17 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-01-22 17:36:17 (GMT)
commite4c7ce36a09f8fafda520e460ad02eabd06f3a49 (patch)
tree31389c04f6bbf6b8450400b8ec9ca1efb9dfbeaf /Lib/test/test_exceptions.py
parenta50ffe5389d5a0f98a35dec1ce1a35b616706199 (diff)
downloadcpython-e4c7ce36a09f8fafda520e460ad02eabd06f3a49.zip
cpython-e4c7ce36a09f8fafda520e460ad02eabd06f3a49.tar.gz
cpython-e4c7ce36a09f8fafda520e460ad02eabd06f3a49.tar.bz2
Merged revisions 77697 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r77697 | ezio.melotti | 2010-01-22 18:58:28 +0200 (Fri, 22 Jan 2010) | 1 line This should fix the failure introduced in r77680. The error message is now different and it caused the test to fail. The failing test is not present in 2.5 so it is failing only on 2.6 and newer versions. ........
Diffstat (limited to 'Lib/test/test_exceptions.py')
0 files changed, 0 insertions, 0 deletions
slc"># The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY # KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE # WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" """ Verify that we can call get_csig() from a function action without causing problems. (This messed up a lot of internal state before the Big Signature Refactoring.) Test case courtesy of Damyan Pepper. """ import TestSCons test = TestSCons.TestSCons() args = "--debug=explain" test.write('SConstruct', """\ env = Environment() def action( source, target, env ): target[0].get_csig() f = open( str(target[0]), 'w' ) for s in source: f.write( s.get_contents() ) f.close() builder = env.Builder( action=action ) builder( env, target = "target.txt", source = "source.txt" ) """) test.write("source.txt", "source.txt 1\n") test.run(arguments=args) test.write("source.txt", "source.txt 2") expect_rebuild = test.wrap_stdout("""\ scons: rebuilding `target.txt' because `source.txt' changed action(["target.txt"], ["source.txt"]) """) test.not_up_to_date(arguments=args) test.pass_test()