Conversation
Current coverage is 98.66%
@@ master #179 diff @@
==========================================
Files 8 8
Lines 447 449 +2
Methods 0 0
Messages 0 0
Branches 80 80
==========================================
- Hits 447 443 -4
- Misses 0 6 +6
Partials 0 0
|
|
Ow, that's interesting, I agree with this PR, it can be merged (after adding pragma no cover to |
| IS_WIN = CUR_OS in ['Windows', 'cli'] | ||
| IS_NIX = (not IS_WIN) and any( | ||
| CUR_OS.startswith(i) for i in | ||
| ['CYGWIN', 'MSYS', 'Linux', 'Darwin', 'SunOS', 'FreeBSD']) |
There was a problem hiding this comment.
if I were you I would have added .lower() and kept actual literals for comparison in lower case.
-- said yarikoptic and then looked at his own code which doesn't (yet) do that ;)
There was a problem hiding this comment.
wouldn't it be safer just to IS_NIX = not IS_WIN? ;-)
There was a problem hiding this comment.
Wouldn't want lower to encourage consistency. platform.system() should never equal, for example, windows or wIndoWs. Also we can't assume all systems which we fail to detect as windows systems are unix. I'd be happier to add "if neither nix nor win, print warning"
|
I'm not a fan of adding pragma no cov to code which strictly speaking should be covered... Is there no way to test widgets? redirect html output etc? I realise this was probably asked before @lrq3000 |
|
@casperdcl Sorry for the delayed answer. Yes it is possible but way too complicated at this stage for me. We need to simulate a fake JS server and IPython API mockup, like the ipywidgets project does. I tried to replicate what they did but it was way over my head... |
addresses: