summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_popen2.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-05-11 06:57:33 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-05-11 06:57:33 (GMT)
commit42dd86b8e2773c342ca7fa0ffcc9d1cbb8589bd3 (patch)
tree27d7ad013999378e92e4a94742831cd2081f5359 /Lib/test/test_popen2.py
parent82be218e971725657af9b3231a0c467e99ade26f (diff)
downloadcpython-42dd86b8e2773c342ca7fa0ffcc9d1cbb8589bd3.zip
cpython-42dd86b8e2773c342ca7fa0ffcc9d1cbb8589bd3.tar.gz
cpython-42dd86b8e2773c342ca7fa0ffcc9d1cbb8589bd3.tar.bz2
Deprecate os.popen* and popen2 module in favor of the subprocess module.
Diffstat (limited to 'Lib/test/test_popen2.py')
-rw-r--r--Lib/test/test_popen2.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_popen2.py b/Lib/test/test_popen2.py
index 31f22d6..023871f 100644
--- a/Lib/test/test_popen2.py
+++ b/Lib/test/test_popen2.py
@@ -1,6 +1,12 @@
#! /usr/bin/env python
"""Test script for popen2.py"""
+import warnings
+warnings.filterwarnings("ignore", ".*popen2 module is deprecated.*",
+ DeprecationWarning)
+warnings.filterwarnings("ignore", "os\.popen. is deprecated.*",
+ DeprecationWarning)
+
import os
import sys
import unittest