Commit Graph

20 Commits

Author SHA1 Message Date
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting (#868) 2022-02-17 06:44:08 -06:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter (#852) 2022-02-09 06:44:28 -06:00
Matti Picus
695a90e75e
PYTHON-2987 Fix test unicode repr on PyPy 7.3.7 (#770) 2021-11-01 12:17:28 -07:00
Bernie Hackett
ad4315134c PYTHON-2803 Get rid of most uses of 'master'
This change also resolves PYTHON-2848 for MongoDB 4.0.
2021-09-13 12:50:49 -07:00
Prashant Mital
0209e4a4a4
PYTHON-2571 Remove NotMasterError (#688) 2021-07-28 16:01:32 -07:00
Prashant Mital
ff6ca53328
PYTHON-2572 Introduce NotPrimaryError and deprecate NotMasterError (#646) 2021-06-22 13:24:07 -07:00
Bernie Hackett
521f7b9af4 PYTHON-2133 Fix up docs
And finish deleting python 2 specific code.
2021-01-21 15:49:23 -08:00
Bernie Hackett
a72e8b8823 PYTHON-2133 Remove py2 support from test
Also delete bson/py3compat.py
2021-01-20 09:40:36 -08:00
Pascal Corpet
86d58113e5
PYTHON-2438 Fix str representation of BulkWriteError (#522) 2020-11-23 09:46:33 -08:00
Shane Harvey
30523d282c
PYTHON-2415 Fix pickle support for BulkWriteError exceptions (#514) 2020-11-12 11:04:55 -08:00
Julius Park
a075eb798f
PYTHON-1787: fix NotMasterError no attribute error (#450) 2020-07-02 13:53:08 -04:00
A. Jesse Jiryu Davis
34398d5bf7 Delete test_errors.py.
This file contains one test that has long been redundant with TestClient.test_host_w_port.
2014-12-17 11:36:25 -05:00
A. Jesse Jiryu Davis
2f9d24ade6 PYTHON-525 Reimplement MongoClient to use Cluster.
Replace MongoClient with an implementation that relies on Cluster and Server. The new MongoClient takes over MongoReplicaSetClient's responsibilities.

Authentication, secondary-pinning, and Mongos high-availability are broken and will be reimplemented in a future commit. RS tests are temporarily disabled.
2014-08-28 16:57:57 -04:00
Luke Lovett
141200083e PYTHON-680 Stop using nose in favor of pure unittest/unittest2 2014-04-25 22:57:33 +00:00
A. Jesse Jiryu Davis
2fa1750b07 Update copyright notices and company name. 2014-01-31 09:36:46 -05:00
A. Jesse Jiryu Davis
d35bec12e5 Tests use MongoClient instead of Connection PYTHON-451 2013-02-11 20:57:17 -05:00
behackett
0ee7170cc2 It's 2012... 2012-04-19 12:40:38 -07:00
Mike Dirolf
3d7240e57f It's 2010! 2010-01-30 10:48:26 -05:00
Mike Dirolf
c8e64f4c02 Use PyMongoError instead of BaseMongoDBException
Note that this is changing the exception hierarchy somewhat as well,
as I would rather not muck things up with multiple inheritance. This
is a breaking change if you depend on ConnectionFailure being an
IOError or InvalidBSON being a ValueError, for example. If this
creates issues for anybody please let us know and we can figure out a
better workaround.

Also add Michael to contributors list.
2010-01-12 16:47:50 -05:00
Michael Schurter
8e50ffb272 Added base exception class to all MongoDB exceptions 2010-01-13 05:37:06 +08:00