Closed idcrook closed 7 years ago
@Uh, it's built in python3 @idcrook . And the invalid characters are ⭐️ emojis 😅
after putting the encoding declaration in the file (which is what this PR does), it successfully ran on my system (on Python 2.7.12)
# -*- coding: utf-8 -*-
Are you saying this PR should be rejected?
No, no. I just realised why it happened. Python 3 assumes UTF-8
encoding.
I have a tiny doubt though. Doesn't Python 2 have a different print
syntax? I'd suggest you test it out by running swiftplate
once (pass in whatever params you like), then run testStructure.py {{project_name_you_chose_previously}}
, and see if it works.
Just tested, it worked!
Great, so now we can run the tests on systems with both Python 2 and 3 🎉 Thanks for this @idcrook!
Platform: macOS 10.12, Python 2.7.12
Error example
$ python ../SwiftPlate/testStructure.py test