summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2012-02-02 19:23:15 (GMT)
committerPetri Lehtinen <petri@digip.org>2012-02-02 19:23:15 (GMT)
commit4b0eab62f04fc2e738b1bff1d170c7f6f96c1920 (patch)
tree4b862ab67650ae543db018d415b4916e87ca6e8a /Lib/test/test_sys.py
parentf854799d8438d66d1997e71cb2ea821e29d33472 (diff)
parent9713321f46769f41f653a752ec348cec766e633e (diff)
downloadcpython-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.py3
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