Convert python test scripts to be Python 2 and 3 compatible

Unicode testing
This commit is contained in:
William S Fulton 2020-08-15 00:09:31 +01:00
commit 66df0bd224
6 changed files with 28 additions and 30 deletions

View file

@ -5,7 +5,7 @@ a = A()
o = wostringstream()
o << a << u" " << 2345 << u" " << 1.435 << wends
o << a << " " << 2345 << " " << 1.435 << wends
if o.str() != "A class 2345 1.435\0":
raise RuntimeError("str failed: \"%s\"".format(o.str()))