diff options
author | Petri Lehtinen <petri@digip.org> | 2012-02-02 19:23:15 (GMT) |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2012-02-02 19:23:15 (GMT) |
commit | 4b0eab62f04fc2e738b1bff1d170c7f6f96c1920 (patch) | |
tree | 4b862ab67650ae543db018d415b4916e87ca6e8a /Lib/test/test_sys.py | |
parent | f854799d8438d66d1997e71cb2ea821e29d33472 (diff) | |
parent | 9713321f46769f41f653a752ec348cec766e633e (diff) | |
download | cpython-4b0eab62f04fc2e738b1bff1d170c7f6f96c1920.zip cpython-4b0eab62f04fc2e738b1bff1d170c7f6f96c1920.tar.gz cpython-4b0eab62f04fc2e738b1bff1d170c7f6f96c1920.tar.bz2 |
Merge branch 3.2
Closes #13402.
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r-- | Lib/test/test_sys.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 6dc0e42..527e762 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -542,6 +542,9 @@ class SysModuleTest(unittest.TestCase): self.assertEqual(out, b'?') def test_executable(self): + # sys.executable should be absolute + self.assertEqual(os.path.abspath(sys.executable), sys.executable) + # Issue #7774: Ensure that sys.executable is an empty string if argv[0] # has been set to an non existent program name and Python is unable to # retrieve the real program name |