-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed more python 2/3 unicode issues.
- Loading branch information
Showing
2 changed files
with
25 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7448d47
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.
I beleave that this is one of these last changes that causes the error while testing
FAIL: test00 (PathTests.TestPathSetupSheet.TestPathSetupSheet)
Verify SetupSheet templateAttributes
Traceback (most recent call last):
File "/home/pagarcia/FreeCAD/FreeCAD/Mod/Path/PathTests/TestPathSetupSheet.py", line 56, in test00
self.assertEqual(attrs[PathSetupSheet.Template.HorizRapid], '0.00 mm/s')
AssertionError: u'0,00 mm/s' != '0.00 mm/s'
The difference is the comma that is the decimal separator in french instead of the dot.
But this did not happen yesterday evening, before the last commits.
7448d47
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.
There's nothing in this commit (or the previous) that changed locale handling. In fact test00 wasn't changed at all, nor anything test00 tests. Locale handling is an interesting point though, I did not consider that when I wrote the test.
7448d47
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.
7448d47
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.
7448d47
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.
7448d47
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.
FC sets LC_NUMERIC="C" explicitly in order to get the '.' as a comma separator. There are some comments in the code and according to wmayer that must not be changed. There's something else going on here.
7448d47
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.
7448d47
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.
7448d47
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.