'Test handling of syntax splitting with custom chars'

def testSyntaxSplitCustom(self):

    ref = ['~/a', '&', '&', 'b-c', '--color=auto', '||', 'd', '*.py?']
    ss = '~/a    &&    b-c    --color=auto    ||    d    *.py?'
    s = shlex.shlex(ss, punctuation_chars='|')
    result = list(s)
    self.assertEqual(ref, result, ("While    splitting    '%s'" % ss))
