-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dynamic.py #80
Conversation
allow non-ascii chars in MSG files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a unit test for this use case. This will also be used as a reproducible example.
@@ -165,7 +165,8 @@ def generate_dynamic(core_type, msg_cat): | |||
|
|||
# write the entire text to a file and import it (it will get deleted when tmp_dir goes - above) | |||
tmp_file = tempfile.NamedTemporaryFile(suffix=".py",dir=tmp_dir,delete=False) | |||
tmp_file.file.write(full_text.encode()) | |||
#tmp_file.file.write(full_text.encode()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this line since the next line replaces it. The git history will be sufficient.
We are aiming for a new round of releases early next week (Mon or Tue). It would be great f this would be ready before in order to get released. |
You can add something like this to test_genpy_dynamic.py to have a unit test for this use case:
|
@moooeeeep Please provide a pull request for proposed code changes. |
@dirk-thomas can I open a new PR and get this merged? or @robbeofficial can you push this through? |
Sure.
This will depend on another review but if it works as expected in Python 2 and 3 as well as doesn't break anything then it can be merged. |
Closing due to no activity. |
allow non-ascii chars in MSG files