summaryrefslogtreecommitdiffstats
path: root/test/Java/java_version_image/src4/NestedExample.java
diff options
context:
space:
mode:
authorAdam Simpkins <adam@adamsimpkins.net>2025-02-23 20:17:44 (GMT)
committerAdam Simpkins <adam@adamsimpkins.net>2025-02-23 20:55:44 (GMT)
commit38386dfaf4e31a16f93dcc7c7387798fe7576334 (patch)
tree46622849750be952f6b2775c06a63a32e14e7316 /test/Java/java_version_image/src4/NestedExample.java
parenta6abb0fff2e8b836dfd58efec752def52faf16b8 (diff)
downloadSCons-38386dfaf4e31a16f93dcc7c7387798fe7576334.zip
SCons-38386dfaf4e31a16f93dcc7c7387798fe7576334.tar.gz
SCons-38386dfaf4e31a16f93dcc7c7387798fe7576334.tar.bz2
Fix running individual test files when ninja is not installed
The code in testing/framework/TestSCons.py attempted to handle an ImportError if ninja is not available. However, when running individual test files from the scons/test/ directory, this directory is included as the first entry in sys.path. When this happens, the `import ninja` statement succeeds, finding the scons/test/ninja/ directory and treating it as a package. This results in an AttributeError being thrown later attempting to access `ninja.BIN_DIR`, rather than an ImportError. I have confirmed that this change now allows `./runtest.py test/Help.py` to succeed, even when ninja is not installed.
Diffstat (limited to 'test/Java/java_version_image/src4/NestedExample.java')
0 files changed, 0 insertions, 0 deletions