Closed GoogleCodeExporter closed 8 years ago
I tried this test case and couldn't get it to fail on the current tip of the
default branch:
diff --git a/couchdb/tests/client.py b/couchdb/tests/client.py
--- a/couchdb/tests/client.py
+++ b/couchdb/tests/client.py
@@ -185,6 +185,10 @@
self.assertEqual(u'Iñtërnâtiônàlizætiøn', self.db[u'føø'][u'bår'])
self.assertEqual(u'ASCII', self.db[u'føø'][u'baz'])
+ def test_unicode_235(self):
+ doc = {u'type': 'test', u'val': unichr(40960)}
+ self.db.update([doc])
+
def test_disallow_nan(self):
try:
self.db['foo'] = {'number': float('nan')}
This makes me think this has been fixed already. If you can still reproduce it
with a more recent changeset, feel free to reopen.
Original comment by djc.ochtman
on 6 Jul 2014 at 11:02
"If the parameter to couchdb.Server is a str instead of a unicode object, the
script executes correctly."
In other words, the behaviour changes depending on whether the couchdb.Server
object is initialized with a string or a unicode string.
Original comment by mikebell...@gmail.com
on 15 Jul 2014 at 6:26
Right. Have you tried reproducing with current tip? Because I still can't.
Original comment by djc.ochtman
on 15 Jul 2014 at 6:57
I have reproduced the problem in 0.10 and the latest couchdb-python from
github.
Looking at your test code it is not obvious to me that the Server object is
being initialized with a unicode string, which is necessary to trigger the
behavior I'm describing.
Original comment by hhmw56...@gmail.com
on 16 Jul 2014 at 6:13
This issue has been migrated to GitHub. Please continue discussion here:
https://github.com/djc/couchdb-python/issues/235
Original comment by djc.ochtman
on 26 Jul 2014 at 6:28
Original issue reported on code.google.com by
hhmw56...@gmail.com
on 28 Apr 2014 at 9:42