self.assertIn('I love Python', output)
- @unittest.skipIf(sys.platform.startswith('freebsd'),
- '\\x08 is not interpreted as backspace on FreeBSD')
+ @unittest.skipIf(sys.platform.startswith(('freebsd', 'dragonfly', 'sunos')),
+ '\\x08 does not remove the auto-indentation with '
+ 'GNU readline on this platform')
def test_multiline_auto_indent(self):
script = textwrap.dedent("""
import pdb; pdb.Pdb().set_trace()
self.assertIn('42', output)
- @unittest.skipIf(sys.platform.startswith('freebsd'),
- '\\x08 is not interpreted as backspace on FreeBSD')
+ @unittest.skipIf(sys.platform.startswith(('freebsd', 'dragonfly', 'sunos')),
+ '\\x08 does not remove the auto-indentation with '
+ 'GNU readline on this platform')
def test_multiline_indent_completion(self):
script = textwrap.dedent("""
import pdb; pdb.Pdb().set_trace()
self.assertIn("main", candidates)
self.assertIn("temp", candidates)
- @unittest.skipIf(sys.platform.startswith("freebsd"),
+ @unittest.skipIf(sys.platform.startswith(("freebsd", "dragonfly", "sunos")),
"Two actual tabs are inserted when there are no matching"
" completions in the pseudo-terminal opened by run_pty()"
- " on FreeBSD")
+ " on this platform")
def test_complete_no_match(self):
input_ = b"xyzzy\t\t\b\b\b\b\b\b\b.quit\n"
# Set NO_COLOR to disable coloring for self.PS1.