Noah Stapp
34ca759f85
PYTHON-5113 - Refactor test utils for async ( #2149 )
2025-03-12 12:59:56 -04:00
Shane Harvey
a2059dc9cb
PYTHON-4663 Fix compatibility with dateutil timezones ( #1812 )
2024-08-28 14:20:55 -07:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff ( #1399 )
2023-10-19 11:56:22 -05:00
Noah Stapp
ec3437849e
PYTHON-3702 Stop using utcnow and utcfromtimestamp ( #1229 )
2023-06-12 15:43:30 -07:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter ( #852 )
2022-02-09 06:44:28 -06:00
Steven Silvester
f4cef37328
PYTHON-3064 Add typings to test package ( #844 )
2022-02-07 19:33:41 -06:00
Bernie Hackett
e17299ab2e
PYTHON-2133 Remove u prefixes from code
2021-01-20 16:10: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
Shane Harvey
93cf0dd176
PYTHON-2102 Migrate testing to Windows 10
...
Add 32-bit Python testing on Windows.
2020-03-16 16:35:37 -07:00
Shane Harvey
5f45a69f70
PYTHON-2150 Fix test_timestamp_values on Jython
2020-03-09 16:35:29 -07:00
Shane Harvey
da778c5017
PYTHON-2150 Fix ObjectId test on 32-bit platforms
2020-03-06 10:36:27 -08:00
Prashant Mital
58851e1221
PYTHON-1619 Implement ObjectID Specification ( #373 )
...
PYTHON-1619 Implement ObjectID Specification
2018-08-29 12:24:28 -05:00
Bernie Hackett
61850357a0
PYTHON-1521 - Use FNV-1a for ObjectId machine bytes
2018-05-31 12:26:53 -07:00
Bernie Hackett
507f954ed4
Update copyright dates
2017-12-01 17:23:39 -08:00
Bernie Hackett
53a7bea492
PYTHON-1022 - Drop support for Python 3.2
...
This change removes the u() helper from bson.py3compat
and all of its uses in the driver and tests. PyPy3 continues
to be supported since, even though it is based on python 3.2.5,
it has always supported the u string prefix.
The README and install docs are now explicit about PyPy(3) support.
2016-06-15 10:05:43 -07:00
Bernie Hackett
aec685b374
Fix up copyright dates.
2015-03-25 11:55:02 -07:00
A. Jesse Jiryu Davis
403b93eb84
PYTHON-726 Fix tests to run with Gevent's monkey-patching.
...
Gevent and multiprocessing work poorly together, so don't use
multiprocessing in test_objectid. Additionally, Gevent 0.13.8
deadlocks with more than about 40 concurrent greenlets on Mac,
so reduce the concurrency to about 20. test_interrupt_signal
still fails with 0.13.8, but others pass, and *all* tests pass
with Gevent 1.0.1:
python -m gevent.monkey setup.py test
2014-07-17 15:13:22 -04:00
A. Jesse Jiryu Davis
504c5a9889
PYTHON-712 ObjectId.is_valid(None) should be False.
2014-06-18 17:02:07 -04:00
Luke Lovett
141200083e
PYTHON-680 Stop using nose in favor of pure unittest/unittest2
2014-04-25 22:57:33 +00:00
Luke Lovett
4d6d1e067b
PYTHON-676 python 2/3 single-source for the test module
2014-04-23 18:37:02 +00:00
A. Jesse Jiryu Davis
2fa1750b07
Update copyright notices and company name.
2014-01-31 09:36:46 -05:00
Bernie Hackett
add8d4fd6a
More warnings cleanup.
2013-10-31 12:04:21 -07:00
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
Ross Lawley
29b9de45db
Added __ne__ for DBRefs PYTHON-440
2012-11-22 11:12:36 +00:00
behackett
da832dc1b8
Fix a skiptest message.
2012-10-24 18:22:32 -07:00
A. Jesse Jiryu Davis
461e2529f7
Informative message whenever skipping a test
2012-08-21 23:24:47 -04:00
Ross Lawley
f2ea613400
Added is_valid classmethod to ObjectId
...
Refs PYTHON-360
2012-07-10 16:09:01 +01: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
Bernie Hackett
98a6b991c3
Fix or skip broken tests in Jython and PyPy.
...
See comments in the commit for details.
2012-03-15 21:49:39 -07:00
Ross Lawley
486c3ce24a
PYTHON-318 - Fix for SON pickling protocol 2
...
Updated tests to check protocol pickling as well
2012-02-08 14:59:33 -08:00
behackett
2ed05bec70
PEP8 cleanups.
2011-04-06 14:57:17 -07:00
behackett
9f9b4a6666
Fix loading of OIDs pickled in 1.9.
...
Credit goes to Steve Lacy <slacy@slacy.com>
for developing the fix and test.
2011-04-04 20:43:23 -07:00
Richard Shea
f202c535d5
change ObjectId __getstate__ and __setstate__ to just use __id also added unit test for pickling/unpickling ObjectId
2011-04-02 11:10:26 -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
Mike Dirolf
c25e5c4bd3
better (tz aware) datetime handling for ObjectId methods (possibly BREAKING)
2010-06-29 10:18:05 -04:00
Mike Dirolf
1a051df81d
from_datetime for objectids PYTHON-112
2010-03-31 17:01:58 -04:00
Mike Dirolf
3d7240e57f
It's 2010!
2010-01-30 10:48:26 -05:00
Mike Dirolf
a7e0e59ee0
minor: complete removal of some things that were deprecated in version <= 1.2
2010-01-26 11:54:39 -05:00
Mike Dirolf
69596517ac
minor: be sure these processes finish their work
2010-01-20 09:52:18 -05:00
Mike Dirolf
fb53f85fe8
allow unicode for ObjectId init. raise InvalidId (instead of TypeError) for non-hex on init.
2009-12-10 15:45:14 -05:00
Mike Dirolf
143e649aca
DEPRECATING ObjectId.url_encode and ObjectId.url_decode - use str() and ObjectId(), respectively. Also completely removing the ObjectId legacy stuff as I don't think anybody is using this. Improve ObjectId docs
2009-12-04 10:14:39 -05:00
Mike Dirolf
b35cec3db5
add generation_time property to ObjectId instances
2009-12-03 17:12:38 -05:00
Mike Dirolf
e7fbbbcf1c
skip multiprocessing tests on windows
2009-10-13 17:14:21 -04:00
Mike Dirolf
ec2b9640ca
failing test for objectid w/ multiprocessing
2009-10-13 09:58:22 -04:00
Mike Dirolf
721a763ba9
minor: doc, credits
2009-08-28 13:51:24 -04:00
Joakim Sernbrant
8e507816ad
* ObjectId: changed str and repr to hex
...
* ObjectId: can now take a hex string in the constructor
Signed-off-by: Mike Dirolf <mike@10gen.com>
2009-08-28 13:49:56 -04:00
Mike Dirolf
3eff3a6765
add legacy conversions for ObjectId
2009-08-25 17:01:08 -04:00
Mike Dirolf
90beef7b20
minor: more PEP 8
2009-06-05 16:54:02 -04:00