source: trunk/essentials/dev-lang/python/Lib/test/test_popen.py@ 3317

Last change on this file since 3317 was 3225, checked in by bird, 19 years ago

Python 2.5

File size: 1.4 KB
Line 
1#! /usr/bin/env python
2"""Basic tests for os.popen()
3
4 Particularly useful for platforms that fake popen.
5"""
6
7import os
8import sys
9from test.test_support import TestSkipped, reap_children
10from os import popen
11
12# Test that command-lines get down as we expect.
13# To do this we execute:
14# python -c "import sys;print sys.argv" {rest_of_commandline}
15# This results in Python being spawned and printing the sys.argv list.
16# We can then eval() the result of this, and see what each argv was.
17python = sys.executable