diff options
author | William Deegan <bill@baddogconsulting.com> | 2019-12-26 21:40:38 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2019-12-26 21:40:38 (GMT) |
commit | 7b2721fe6ed1a93ac7a40c4302114518877141ea (patch) | |
tree | b005a2b9818d17633403183ba78dce09a3a178ff /src | |
parent | 45d138b8dee00bef38f4e1684ce79836616f3d8d (diff) | |
download | SCons-7b2721fe6ed1a93ac7a40c4302114518877141ea.zip SCons-7b2721fe6ed1a93ac7a40c4302114518877141ea.tar.gz SCons-7b2721fe6ed1a93ac7a40c4302114518877141ea.tar.bz2 |
Fix CacheDirTest so that temp dir is not under the directory that the runtest.py is run from, but rather from the temp dir created for the test
Diffstat (limited to 'src')
-rw-r--r-- | src/engine/SCons/CacheDirTests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/CacheDirTests.py b/src/engine/SCons/CacheDirTests.py index 07c32b4..0e242c4 100644 --- a/src/engine/SCons/CacheDirTests.py +++ b/src/engine/SCons/CacheDirTests.py @@ -130,7 +130,7 @@ class ExceptionTestCase(unittest.TestCase): @unittest.skipIf(sys.platform.startswith("win"), "This fixture will not trigger an OSError on Windows") def test_throws_correct_on_OSError(self): """Test that the correct error is thrown when cache directory cannot be created.""" - privileged_dir = os.path.join(os.getcwd(), "privileged") + privileged_dir = os.path.join(self.tmpdir, "privileged") try: os.mkdir(privileged_dir) os.chmod(privileged_dir, stat.S_IREAD) |