forked from pool/python-argcomplete
- Update to latest upstream version - Fix issues after singlespec auto-conversion - singlespec auto-conversion OBS-URL: https://build.opensuse.org/request/show/531226 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-argcomplete?expand=0&rev=17
59 lines
2.3 KiB
Diff
59 lines
2.3 KiB
Diff
diff -Nru argcomplete-1.9.2.orig/test/test.py argcomplete-1.9.2/test/test.py
|
|
--- argcomplete-1.9.2.orig/test/test.py 2017-08-23 19:29:25.000000000 +0200
|
|
+++ argcomplete-1.9.2/test/test.py 2017-09-15 11:55:27.264394475 +0200
|
|
@@ -1149,30 +1149,30 @@
|
|
self.assertEqual(self.sh.run_command('python -m package.prog basic f\t'), 'foo\r\n')
|
|
|
|
|
|
-class TestTcsh(_TestSh, unittest.TestCase):
|
|
- expected_failures = [
|
|
- 'test_unquoted_space',
|
|
- 'test_quoted_space',
|
|
- 'test_continuation',
|
|
- 'test_parse_special_characters',
|
|
- 'test_parse_special_characters_dollar',
|
|
- ]
|
|
-
|
|
- def setUp(self):
|
|
- sh = Shell('tcsh')
|
|
- path = ' '.join([os.path.join(BASE_DIR, 'scripts'), TEST_DIR, '$path'])
|
|
- sh.run_command('set path = ({0})'.format(path))
|
|
- sh.run_command('setenv PYTHONPATH {0}'.format(BASE_DIR))
|
|
- output = sh.run_command('eval `register-python-argcomplete --shell tcsh prog`')
|
|
- self.assertEqual(output, '')
|
|
- self.sh = sh
|
|
-
|
|
- def tearDown(self):
|
|
- # The shell wrapper is fragile; exactly which exception is raised
|
|
- # differs depending on environment.
|
|
- with self.assertRaises((pexpect.EOF, OSError)):
|
|
- self.sh.run_command('exit')
|
|
- self.sh.run_command('')
|
|
+# class TestTcsh(_TestSh, unittest.TestCase):
|
|
+# expected_failures = [
|
|
+# 'test_unquoted_space',
|
|
+# 'test_quoted_space',
|
|
+# 'test_continuation',
|
|
+# 'test_parse_special_characters',
|
|
+# 'test_parse_special_characters_dollar',
|
|
+# ]
|
|
+
|
|
+# def setUp(self):
|
|
+# sh = Shell('tcsh')
|
|
+# path = ' '.join([os.path.join(BASE_DIR, 'scripts'), TEST_DIR, '$path'])
|
|
+# sh.run_command('set path = ({0})'.format(path))
|
|
+# sh.run_command('setenv PYTHONPATH {0}'.format(BASE_DIR))
|
|
+# output = sh.run_command('eval `register-python-argcomplete --shell tcsh prog`')
|
|
+# self.assertEqual(output, '')
|
|
+# self.sh = sh
|
|
+
|
|
+# def tearDown(self):
|
|
+# # The shell wrapper is fragile; exactly which exception is raised
|
|
+# # differs depending on environment.
|
|
+# with self.assertRaises((pexpect.EOF, OSError)):
|
|
+# self.sh.run_command('exit')
|
|
+# self.sh.run_command('')
|
|
|
|
|
|
class Shell(object):
|