Commit graph

201 commits

Author SHA1 Message Date
Morten Enemark Lund
876740b535 Fixed escape_windows_cmd_string not handling ^ correctly 2017-08-01 21:43:46 +02:00
Anthony Scopatz
1df6b22203 EnvPath __add__() and __radd__() methods 2017-07-22 16:31:16 -04:00
Anthony Scopatz
078c44703c fixed triple quote issue when open triple quotes are on the last line 2017-07-16 15:34:20 -05:00
Joel Gerber
0b94c3ceec
raise AssertionError on deprecated when removed_in exceeded
As there was some worry raised over whether people would remember
to remove a deprecated function once the removed_in version had been
reached, I've decided to add functionality that will force the
issue. When a @deprecated function is tagged with a removed_in
release that is greater than or equal to the current release, the
@deprecated decorator will raise an AssertionError, which will
hopefully break CI/CD and force the function to be removed.
2017-06-10 09:57:49 -04:00
Joel Gerber
5c33aac9f2
Introduce deprecated function/method decorator
This method allows for import time modification of a decorated
method/function such that it's docstring will reflect when the
function was deprecated, when it will be removed and that it is in
fact deprecated. It will also use the warnings system to flag
a DeprecationWarning that Python will report on when run with the
`-W` flag, or, when run through certain static/dynamic code
analyzers.
2017-06-09 21:50:38 -04:00
Morten Enemark Lund
5f60bea8c4 Removed %foo% environment expansion on windows 2017-03-15 22:33:21 +01:00
Anthony Scopatz
d331778633 Line continuations will no longer eat surrounding whitespace 2017-03-02 00:34:47 -05:00
Anthony Scopatz
b389c99399 added greedy subproc_toks 2017-02-25 20:15:02 -05:00
Anthony Scopatz
14acf7ac99 fix tests 2017-02-25 12:15:56 -05:00
Anthony Scopatz
f4112cf0b1 some more qtoue fixes 2017-02-24 23:55:12 -05:00
Anthony Scopatz
bf75fe8a14 dotall 2017-02-24 23:18:31 -05:00
Anthony Scopatz
d7196ca7fa more working 2017-02-24 23:00:06 -05:00
Anthony Scopatz
f056fe01c3 more 2017-02-24 22:39:36 -05:00
Anthony Scopatz
0cb619468a line continuation fixes 2017-02-15 00:58:38 -05:00
Anthony Scopatz
6f448c0cfb Added __file__ and __name__ to xonsh scripts 2017-02-11 18:51:10 -05:00
Anthony Scopatz
79777ac888 added subexpr_before_unbalanced 2017-02-04 17:35:32 -05:00
Anthony Scopatz
41191d1b30 added is_balanced() 2017-02-04 17:04:12 -05:00
Andre Weltsch
95bd061163 Add test cases for tools.expand_path.
* Test different parameters for expand_user.
* Test different parameters for EXPAND_ENV_VARS.
2017-01-30 18:49:41 +01:00
Jan Schulz
49b92c6add Add failing test for windows machine dirs 2016-10-22 14:42:30 +02:00
Gil Forsyth
d1f063f497 remove redefined tests from test_tools 2016-10-18 16:36:13 -04:00
Anthony Scopatz
4a58eb9d4f added some tests for the new predictors 2016-09-28 20:00:18 -04:00
Morten Enemark Lund
4f9304cbd9 Add xonsh_builtins fixture to test_commands_cache_lazy() 2016-09-11 09:59:16 +02:00
Konstantinos Tsakiltzidis
9754098e42 Merge pull request #1644 from xonsh/msub
Subprocess Macros
2016-08-31 04:00:07 +03:00
laerus
295e04a7c4 typo 2016-08-29 13:46:22 +03:00
laerus
500963ae8b get_portions 2016-08-29 13:42:40 +03:00
laerus
a3c1dfd28e generators everywhere 2016-08-29 02:45:36 +03:00
laerus
db8f5bc0d5 ensure_slice bug for 0 2016-08-28 22:26:50 +03:00
Anthony Scopatz
5a66fd05b5 more auto-wrapping fixes 2016-08-27 19:55:58 -04:00
Anthony Scopatz
82ae566fff fixed up subproc warpper for macros 2016-08-27 19:35:48 -04:00
Konstantinos Tsakiltzidis
f362165491 ensure_timestamp basic 2016-08-10 16:49:06 +03:00
Konstantinos Tsakiltzidis
c390021089 ensure_slice fix for -1 2016-08-04 14:14:22 +03:00
Konstantinos Tsakiltzidis
d3793a3f99 catch errors when calling _hist_get 2016-08-02 15:59:11 +03:00
laerus
41750045c2 ensure_timestamp p1 2016-08-01 15:01:17 +03:00
laerus
9c56f1e7e3 'ensure_slice for empty vals, tweak tests' 2016-07-23 13:32:24 +03:00
laerus
91b9e81312 ensure_slice accepts sequences 2016-07-23 09:53:38 +03:00
laerus
d5ca1adc1b tools ensure_slice accept slice obj 2016-07-21 16:54:34 +03:00
laerus
122242d499 cleanup/restore old functons 2016-07-20 15:16:46 +03:00
laerus
d39ac8836a Merge branch 'master' into hist_ref 2016-07-18 21:42:59 +03:00
laerus
39ca37b51c removed obsolete functions 2016-07-18 21:41:22 +03:00
laerus
1141d4cf89 ensure_slice + tests
ensure_int_or_slice renamed to ensure_slice and now always returns a
slice
2016-07-18 21:36:09 +03:00
laerus
245b5f7120 test_partial_string ref 2016-07-18 00:35:50 +03:00
laerus
e6752434da new test for windows variety 2016-07-13 23:45:52 +03:00
laerus
aa4fa7a04e tweak test 2016-07-06 15:08:11 +03:00
laerus
39c73e2bc9 small refactor/ handle *None* envvar values 2016-07-05 18:05:47 +03:00
laerus
6487a8de48 tweak tests/ user ensurer for value conversion 2016-07-05 17:48:03 +03:00
laerus
7f41ef9e82 covert envvar values to strings 2016-07-05 17:02:24 +03:00
laerus
803bfce5a9 test refactor 2016-07-05 16:04:03 +03:00
laerus
4a74b5477d paren hell in test_tools 2016-07-05 14:33:05 +03:00
laerus
6b482b803c more tests/ fixed bug for different envvars 2016-07-05 14:28:57 +03:00
laerus
2dc7f2b5c3 'test_tools shapeup' 2016-07-05 12:15:02 +03:00