summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-11-13 07:45:39 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-11-13 07:45:39 (GMT)
commitd4e48b7f61a767dd32195ccc91949017bbef5a05 (patch)
treea25d734d0071e35822ed9c807a3d2380112f6d8a /Lib
parentf56d015a7123de2df3a32bc38f666a79dd8cab79 (diff)
downloadcpython-d4e48b7f61a767dd32195ccc91949017bbef5a05.zip
cpython-d4e48b7f61a767dd32195ccc91949017bbef5a05.tar.gz
cpython-d4e48b7f61a767dd32195ccc91949017bbef5a05.tar.bz2
Patch #839877: Remove unused lambda expression.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_glob.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_glob.py b/Lib/test/test_glob.py
index a06ce9d..dd33691 100644
--- a/Lib/test/test_glob.py
+++ b/Lib/test/test_glob.py
@@ -66,7 +66,6 @@ class GlobTests(unittest.TestCase):
def test_glob_literal(self):
eq = self.assertSequencesEqual_noorder
- np = lambda *f: norm(self.tempdir, *f)
eq(self.glob('a'), [self.norm('a')])
eq(self.glob('a', 'D'), [self.norm('a', 'D')])
eq(self.glob('aab'), [self.norm('aab')])
@@ -74,7 +73,6 @@ class GlobTests(unittest.TestCase):
def test_glob_one_directory(self):
eq = self.assertSequencesEqual_noorder
- np = lambda *f: norm(self.tempdir, *f)
eq(self.glob('a*'), map(self.norm, ['a', 'aab', 'aaa']))
eq(self.glob('*a'), map(self.norm, ['a', 'aaa']))
eq(self.glob('aa?'), map(self.norm, ['aaa', 'aab']))
@@ -83,7 +81,6 @@ class GlobTests(unittest.TestCase):
def test_glob_nested_directory(self):
eq = self.assertSequencesEqual_noorder
- np = lambda *f: norm(self.tempdir, *f)
if os.path.normcase("abCD") == "abCD":
# case-sensitive filesystem
eq(self.glob('a', 'bcd', 'E*'), [self.norm('a', 'bcd', 'EF')])
@@ -95,7 +92,6 @@ class GlobTests(unittest.TestCase):
def test_glob_directory_names(self):
eq = self.assertSequencesEqual_noorder
- np = lambda *f: norm(self.tempdir, *f)
eq(self.glob('*', 'D'), [self.norm('a', 'D')])
eq(self.glob('*', '*a'), [])
eq(self.glob('a', '*', '*', '*a'),