A. Jesse Jiryu Davis
f1f7b14bf6
Allow MongoClients to be GC'ed after test runs.
...
Work around http://bugs.python.org/issue11798 to reduce max connection count during tests.
2013-08-27 09:00:50 -04:00
A. Jesse Jiryu Davis
c758efcb34
Rename test_connection -> test_client, test_replica_set_connection -> test_replica_set_client PYTHON-451
2013-02-11 21:33:55 -05:00
A. Jesse Jiryu Davis
d35bec12e5
Tests use MongoClient instead of Connection PYTHON-451
2013-02-11 20:57:17 -05:00
Ross Lawley
29b9de45db
Added __ne__ for DBRefs PYTHON-440
2012-11-22 11:12:36 +00:00
Bernie Hackett
f812d1babb
Support copy of UUIDLegacy
2012-11-19 06:27:59 -08:00
Bernie Hackett
ae3a534dfb
Fix pickling of Binary with Python 3.1 PYTHON-422
...
This works around http://bugs.python.org/issue7382
2012-10-25 09:43:14 -07:00
Ross Lawley
996a57c1b0
Ensure test starts cleanly
2012-10-03 07:44:12 +00:00
A. Jesse Jiryu Davis
461e2529f7
Informative message whenever skipping a test
2012-08-21 23:24:47 -04:00
behackett
638bb7fbdc
Support Java and C# UUID byte order PYTHON-387
2012-08-15 12:10:26 -07:00
behackett
0ee7170cc2
It's 2012...
2012-04-19 12:40:38 -07:00
behackett
12592be1fe
Python 3 unittest changes PYTHON-84.
2012-03-28 11:53:47 -07:00
behackett
2d21ba9376
Replace deprecated unittest assert method aliases.
...
assert_ -> assertTrue
assertEquals -> assertEqual
This is needed to clean up deprecation warnings
in python >= 3.2
2012-03-16 17:20:21 -07:00
behackett
eb5959ee95
Default to Binary subtype 3 for UUIDs PYTHON-267
2011-12-06 11:58:43 -08:00
behackett
8bdb7821a9
Always decode to UUID PYTHON-267
2011-09-14 15:11:58 -07:00
behackett
258f81870e
Store UUIDs as BSON binary subtype 4 PYTHON-267
...
The default binary subtype for UUIDs has changed
to 4. You can use bson.binary.UUIDLegacy to query
on UUIDs previously stored as subtype 3. See the
UUIDLegacy docstring for more details.
2011-09-14 13:12:36 -07:00
behackett
3603d05ce1
Switch default Binary subtype from 2 to 0.
2011-08-01 15:33:24 -07:00
Mike Dirolf
9c182809f3
Create a separate bson package PYTHON-60
...
Many of the pymongo modules have been moved into the bson
package. Aliases for those modules have been added to the pymongo
package, without deprecation warnings for now. Application developers
should begin to use the bson namespace, as deprecation of moved
modules will probably begin in the next release.
2010-09-14 13:52:50 -04:00
jbergstroem
ec22172030
s/failIf/assertFalse
2010-08-11 03:44:06 +08:00
Mike Dirolf
790f87be4a
actually, keep using subtype 2 as default for a while
2010-06-17 11:37:19 -04:00
Mike Dirolf
ce965158d6
use subtype 0 as default for Binary, instead of 2
2010-06-16 12:13:25 -04:00
Mike Dirolf
3d7240e57f
It's 2010!
2010-01-30 10:48:26 -05:00
Mike Dirolf
82f84b9f3f
Binary instances should never compare equal to str instances
2009-11-10 17:10:50 -05:00
Mike Dirolf
d2a47c5342
minor: more PEP 8
2009-06-05 17:18:09 -04:00
Mike Dirolf
3262cfc215
make subtype a property instead of a regular method
2009-03-12 11:52:52 -04:00
Mike Dirolf
7bbb4a5133
python 2.3 support
...
mostly not using unittest.assertTrue and assertFalse.
also not using decorator syntax, and some missing built-ins (sorted, etc.)
2009-02-20 14:35:21 -05:00
Mike Dirolf
beb8e7def4
test equality
2009-02-02 10:04:49 -05:00
Mike Dirolf
5c65676543
can initialize a new Binary instance with a subtype
2009-02-02 09:10:08 -05:00
Mike Dirolf
fca52eaf96
remove spurious is_binary method
2009-01-29 10:54:00 -05:00
Mike Dirolf
dab986f3da
change sys.path unconditionally to work around people who have the egg installed
2009-01-28 15:32:42 -05:00
Mike Dirolf
eb5af47c57
don't append - insert at beginning
2009-01-28 15:09:24 -05:00
Mike Dirolf
ef63bbe81e
add '' to sys.path so test files can be run as python test/test_whatever.py
2009-01-28 14:44:35 -05:00
Mike Dirolf
f42889acf1
repr for binary
2009-01-23 16:50:42 -05:00
Mike Dirolf
e83f91f1f8
binary wrapper
2009-01-23 16:35:03 -05:00