MCPcopy Index your code
hub / github.com/python/cpython / testCompat

Method testCompat

Lib/test/test_shlex.py:174–180  ·  view source on GitHub ↗

Test compatibility interface

(self)

Source from the content-addressed store, hash-verified

172 self.splitTest(self.posix_data, comments=True)
173
174 def testCompat(self):
175 """Test compatibility interface"""
176 for i in range(len(self.data)):
177 l = self.oldSplit(self.data[i][0])
178 self.assertEqual(l, self.data[i][1:],
179 "%s: %s != %s" %
180 (self.data[i][0], l, self.data[i][1:]))
181
182 def testSyntaxSplitAmpersandAndPipe(self):
183 """Test handling of syntax splitting of &, |"""

Callers

nothing calls this directly

Calls 2

oldSplitMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected