diff options
Diffstat (limited to 'Lib/test')
| -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 6c5fc24..6e37ac4 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -471,6 +471,9 @@ class SysModuleTest(unittest.TestCase): self.assertRaises(TypeError, sys.call_tracing, str, 2) 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 |
