Closed kernc closed 9 years ago
This will break on Python 3, where you can't write bytes to a file opened in text mode (the default).
Thanks for catching that. Would this now work? How would I go about writing a test for --watch
flag?
That should do it :)
I suppose you'd have to either fake out a bunch of stuff (gross), or actually write a test that spawns a subprocess and writes out files and waits to see if the subprocess picks them up.
Having run pyScss with
--watch
, it died with:(My CSS includes
content: '';
line.)Encoding to UTF-8, assuming that's what everyone wants, before writing the file, solves it.