diff options
author | William Deegan <bill@baddogconsulting.com> | 2020-05-18 18:22:30 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2020-05-18 18:22:30 (GMT) |
commit | 4a0cd4864a82803c414023e69e5ba9419c295309 (patch) | |
tree | 6e0482c985968321424fd109a04e72542c1b2742 | |
parent | a17a722ff8f79ea3027944b44914f7367873b4cf (diff) | |
download | SCons-4a0cd4864a82803c414023e69e5ba9419c295309.zip SCons-4a0cd4864a82803c414023e69e5ba9419c295309.tar.gz SCons-4a0cd4864a82803c414023e69e5ba9419c295309.tar.bz2 |
change test to change expected line # depending on python version
-rw-r--r-- | test/packaging/rpm/explicit-target.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/packaging/rpm/explicit-target.py b/test/packaging/rpm/explicit-target.py index 0cf486e..66f5e4a 100644 --- a/test/packaging/rpm/explicit-target.py +++ b/test/packaging/rpm/explicit-target.py @@ -30,6 +30,7 @@ Test the ability to create a rpm package from a explicit target name. import os import TestSCons +import sys _python_ = TestSCons._python_ @@ -75,9 +76,15 @@ env.Package( NAME = 'foo', ) """ % locals()) + +if sys.version_info.minor >= 8: + line_number = 12 +else: + line_number = 23 + expect = """ scons: *** Setting target is not supported for rpm. -""" + test.python_file_line(test.workpath('SConstruct'), 12) +""" + test.python_file_line(test.workpath('SConstruct'), line_number) test.run(arguments='', status=2, stderr=expect) |