summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_commands.py')
-rw-r--r--Lib/test/test_commands.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/Lib/test/test_commands.py b/Lib/test/test_commands.py
index d899d66..1b84306 100644
--- a/Lib/test/test_commands.py
+++ b/Lib/test/test_commands.py
@@ -4,10 +4,6 @@
'''
import unittest
import os, tempfile, re
-import warnings
-
-warnings.filterwarnings('ignore', r".*commands.getstatus.. is deprecated",
- DeprecationWarning)
from test.test_support import TestSkipped, run_unittest, reap_children
from commands import *
@@ -42,28 +38,10 @@ class CommandTests(unittest.TestCase):
if dir is not None:
os.rmdir(dir)
- def test_getstatus(self):
- # This pattern should match 'ls -ld /.' on any posix
- # system, however perversely configured. Even on systems
- # (e.g., Cygwin) where user and group names can have spaces:
- # drwxr-xr-x 15 Administ Domain U 4096 Aug 12 12:50 /
- # drwxr-xr-x 15 Joe User My Group 4096 Aug 12 12:50 /
- # Note that the first case above has a space in the group name
- # while the second one has a space in both names.
- pat = r'''d......... # It is a directory.
- \+? # It may have ACLs.
- \s+\d+ # It has some number of links.
- [^/]* # Skip user, group, size, and date.
- /\. # and end with the name of the file.
- '''
-
- self.assert_(re.match(pat, getstatus("/."), re.VERBOSE))
-
def test_main():
run_unittest(CommandTests)
reap_children()
-
if __name__ == "__main__":
test_main()