summaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-22 14:12:27 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-22 14:12:27 -0400
commite25d446c9f51a178285b55ac230468aecfcb660e (patch)
tree137e0cf3dbd1e31824b86ea3c2691d3f5072fd66 /testsuite
parent93c1f7b10b8abd2f00702c238cc30a9fdcb8dfdf (diff)
downloadbcfg2-e25d446c9f51a178285b55ac230468aecfcb660e.tar.gz
bcfg2-e25d446c9f51a178285b55ac230468aecfcb660e.tar.bz2
bcfg2-e25d446c9f51a178285b55ac230468aecfcb660e.zip
fixed unicode test in TestFile again
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestFile.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestFile.py b/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestFile.py
index a793513f5..66b5b44ad 100644
--- a/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestFile.py
+++ b/testsuite/Testlib/TestClient/TestTools/TestPOSIX/TestFile.py
@@ -62,7 +62,10 @@ class TestPOSIXFile(TestPOSIXTool):
entry.text = "test"
self.assertEqual(ptool._get_data(entry), ("test", False))
- ustr = u_str('é', 'UTF-8')
+ if inPy3k:
+ ustr = 'é'
+ else:
+ ustr = u_str('é', 'UTF-8')
entry = copy.deepcopy(orig_entry)
entry.text = ustr
self.assertEqual(ptool._get_data(entry), (ustr, False))