Commit graph

1427 commits

Author SHA1 Message Date
Bob Hyman
dde73ba72c Xonsh failback to /usr/bin/bash in preference to /etc/shells 2020-06-25 19:49:04 -04:00
Bob Hyman
6492a61171 test 2020-06-24 20:03:56 -04:00
Bob Hyman
129ce9e44a LS_COLORS add mh, change rs to fi; support ln=target 2020-06-20 17:46:37 -04:00
Bob Hyman
016afa5281 Merge branch 'is_3608' of https://github.com/bobhy/xonsh into is_3608 2020-06-14 14:36:06 -04:00
Bob Hyman
b65f7b0ac5 Only test easy-to-test cases on Windows. 2020-06-14 13:16:37 -04:00
Bob Hyman
57ed6e553a Prune test cases that won't work on Windows. 2020-06-14 13:08:11 -04:00
Bob Hyman
08a79c97c8 don't try to create pipe on Windows; return 'or', not 'mi' for broken link 2020-06-14 00:43:15 -04:00
Bob Hyman
08f1b06749 ln=target; fix #3578 2020-06-13 01:36:22 -04:00
Bob Hyman
1f8ad1c285 use ls --colors implementation; no os.listxattr on Windows 2020-06-12 16:37:19 -04:00
Bob Hyman
3d3d09e00a Mega rewrite color_files per ls -c sources; first step to ln=target 2020-06-11 21:28:25 -04:00
Bob Hyman
24b83bcf38 Support $LS_COLORS 'ca' (linux only) 2020-06-10 22:07:50 -04:00
Bob Hyman
4e230fa5a8 LS_COLORS add 'mh' change 'rs' to 'fi' 2020-06-09 21:47:59 -04:00
Bob Hyman
21bb138644 flake8 complains in Windows about symbolic links; remove fortunately redundant linked file 2020-05-23 23:24:32 -04:00
Bob Hyman
6d01b7c880 Merge branch 'master' into flake8_0 2020-05-14 19:54:06 -04:00
David Strobach
3a6e9de201
Fix column offset of unary operator AST node (#3565)
* Fix unary operator AST node column offset

This fixes a bug in subprocess mode. Logical subrocess
operators could not follow long subprocess arguments (e.g. --version).
2020-05-10 10:17:55 -04:00
Bob Hyman
68fbf93ed1 Merge branch 'master' into flake8_in_CI 2020-05-08 15:42:28 -04:00
Bob Hyman
dd82c5ffd8 Clean up ignorable warnings in clean pytest run 2020-05-08 15:41:06 -04:00
David Strobach
5d74e5c2a0
Merge pull request #3527 from xonsh/fix_pip_completer
Fix `pip` completer misfires for `pipx`
2020-05-08 15:10:44 +02:00
Bob Hyman
a6bb5e2d56 Run (pure) flake8 in CI; deprecate config for pytest-flake8 2020-05-06 22:49:11 -04:00
Bob Hyman
26475146e2
Flake8 1 (#3550)
* flake8 fixes -- tests only

* fix ci failure

* integrate fix from is_3551 so tests will pass.

* Update tests/test_builtins.py

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2020-05-05 06:42:28 -04:00
Gil Forsyth
80cf826961
Mark flaky test (#3556) 2020-04-30 20:47:23 -04:00
Bob Hyman
9aa4d4803c
fix test case for convert_macro_arg (#3552)
* fix test case for convert_macro_arg

* fix test case for convert_macro_arg
2020-04-30 20:31:45 -04:00
Gil Forsyth
f32f0a0d96 Fix pip completer misfires for pipx
Need a word-boundary now after the initial match

Resolves #3526
Resolves #3379

Signed-off-by: Gil Forsyth <gil@forsyth.dev>
2020-04-20 11:26:49 -04:00
Bob Hyman
53bfe8c99c
Add ptk3 (#3521)
* delete package ptk; rename ptk2 to ptk_shell.; leave ptk2 as alias for ptk_shell.
* SHELL_TYPE "prompt_toolkit" only; remove ptk1 specific behavior.
* Doc updates: eliminate reference to prompt-toolkit < 2.0
* update requirements files ptk>=2; test shell_style="none"
* fix ptk2 stub per code review
* Add ptk2 to list of packages to install.
2020-04-18 10:44:27 -04:00
Raphael Das Gupta
3a232c6782
make comments easier to comprehend (#3517)
Make comments in the test_multiline_...-testcases easier to comprehend
by using correct grammar and spelling and by stating more relevant aspects.

Comment on test parameters with inline instead of block comments,
as this makes it easier to associate code lines with comments,
without having to resort to additional blank lines for separation.
2020-04-15 14:14:24 -04:00
David Strobach
940713f7f8 Add @$() tests 2020-04-08 18:34:47 +02:00
David Strobach
222472d015 Fix ampersand parameter test 2020-04-07 23:48:22 +02:00
David Strobach
d49335174c Merge branch 'master' into fix-background-operator 2020-04-07 22:39:42 +02:00
David Strobach
eb975f6666 add some tests 2020-04-07 15:07:24 +02:00
Bob Hyman
65e639eb88 Merge branch 'master' into is3474 2020-03-29 16:14:54 -04:00
Bob Hyman
bd313eef53 Fix test case for changing or deleting colors 2020-03-29 16:05:10 -04:00
Anthony Scopatz
feeb6315cc
Merge pull request #3482 from laloch/execx-evalx-newline
Fix execx / evalx trailing newline
2020-03-19 11:50:33 -04:00
David Strobach
702bd2acc3 Add execx/evalx EOL tests 2020-03-19 11:56:11 +01:00
David Strobach
60f87bc1ba test tools: remove input sanitization from test function 2020-03-19 11:54:56 +01:00
Noortheen Raja
0851866ebf feat: add HISTCONTROL(erasedups) support to sqlite backend
fixes part of !3478
2020-03-19 12:58:31 +05:30
Bob Hyman
9fe865169e color_files() never returns None for token. 2020-03-14 23:03:11 -04:00
Anthony Scopatz
2e30f330c0
Exitcode (#3465) 2020-03-01 15:06:33 -05:00
Jerzy Drozdz
b37675a6e8
Loading rc in non-interactive login shell (#3422)
* Setting -l flag loads environment on non-interactive shell
* Added checking dash existance in sys.argv[0]
* Fixed -a switch behaviour
* Added tests for xexec
* Added test for python<3.7 on Windows
* Testing non existent command with mocked execvpe
2020-03-01 12:56:23 -05:00
Anthony Scopatz
d5e79d14e0
Merge pull request #3441 from astronouth7303/fix-imphooks-get_source
Fix get_source()
2020-02-28 15:22:54 -05:00
Anthony Scopatz
97bcf9fa48
Merge branch 'master' into ls-color 2020-02-28 14:50:28 -05:00
Bob Hyman
94ac8f67f5
black-fix - split from ls_color for separate review (#3431)
* black-fix - split from ls_color for separate review
2020-02-14 09:09:34 -05:00
Jamie Bliss
5087ca0378 Add test 2020-02-11 13:37:20 -05:00
Mike Crowe
11e760a966 "Adding test to validate additional color stripping." 2020-02-08 18:31:53 -05:00
Bob Hyman
ab7ba68462 Merge branch 'master' 49cd2812bb into ls-color 2020-01-31 22:13:07 -05:00
Bob Hyman
248b5cb73a fix #3418 2020-01-12 14:45:52 -05:00
Bob Hyman
f54129342b Hammer lint errors flat. 2020-01-04 13:56:02 -05:00
Bob Hyman
0c31a90e46 Blacken test file corresponding to flake8 config 2020-01-04 09:55:58 -05:00
Bob Hyman
afd3cada69 Legit unit test failure 2020-01-04 09:29:09 -05:00
Bob Hyman
258c849c69 Initialize file_colors in XonshStyle; eliminate pre-cmdloop event 2020-01-03 21:30:14 -05:00
Bob Hyman
148748960b
CI Failures for files outside unit test environment.
/dev/sda and /dev/tty do exist in some Travis test environments but not others.  Eventually should add internal files for block and character device files.  For now, I'm relying on works-on-my-machine tests (which are passing).
2019-12-26 09:04:42 -05:00