Jeffrey 'Alex' Clark
ec9d95413c
PYTHON-5757 Deprecate Python 2 methods in SON ( #2732 )
2026-03-18 17:46:23 -04:00
Iris
b8460b6001
PYTHON-5387 Better test assertions for membership ( #2348 )
2025-05-23 09:04:32 -07:00
Steven Silvester
7936708d97
PYTHON-4014 Apply QA Suggestions from Scientific Python Library Development Guide ( #1414 )
2023-11-01 19:37:22 -05:00
Steven Silvester
992d1507e7
PYTHON-4005 Replace flake8 and isort with ruff ( #1399 )
2023-10-19 11:56:22 -05:00
Shane Harvey
0092b0af79
PYTHON-2504 Run pyupgrade 3.4.0 and ruff 0.0.265 ( #1196 )
...
pyupgrade --py37-plus bson/*.py pymongo/*.py gridfs/*.py test/*.py tools/*.py test/*/*.py
ruff --fix-only --select ALL --fixable ALL --target-version py37 --line-length=100 --unfixable COM812,D400,D415,ERA001,RUF100,SIM108,D211,D212,SIM105,SIM,PT,ANN204,EM bson/*.py pymongo/*.py gridfs/*.py test/*.py test/*/*.py
2023-05-11 15:27:17 -07:00
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
Julius Park
fbd5599deb
PYTHON-2518 SON class should be compatible with Python 3's OrderedDict API ( #730 )
2021-09-16 15:21:40 -07:00
Bernie Hackett
a72e8b8823
PYTHON-2133 Remove py2 support from test
...
Also delete bson/py3compat.py
2021-01-20 09:40:36 -08: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
Don Mitchell
b8c944f118
Allow destructive ops during son iteration
...
and let python handle (identical to iter on list)
2014-10-24 13:19:33 -04:00
Don Mitchell
4093c06726
Don't unnecessarily copy the key list
...
Conflicts:
doc/contributors.rst
test/test_son.py
2014-10-24 13:19:20 -04:00
A. Jesse Jiryu Davis
4c763ee5ba
PYTHON-710 test that SON.to_dict doesn't change data.
2014-06-18 19:05:02 -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
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
828aad3aad
Ensure deepcopy clones using the correct type - PYTHON-459
2013-01-08 09:53:39 +00:00
Ross Lawley
d2840d0d7a
SON equality fix PYTHON-441
...
Comparison to another SON is order-sensitive while comparison to a
regular dictionary is order-insensitive
2012-11-23 13:52:05 +00:00
Ross Lawley
29b9de45db
Added __ne__ for DBRefs PYTHON-440
2012-11-22 11:12:36 +00: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
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
Mike Dirolf
e61ee2b3fd
Move json_util from pymongo to bson as well PYTHON-60
2010-09-14 13:55:22 -04:00
Mike Dirolf
3d7240e57f
It's 2010!
2010-01-30 10:48:26 -05:00
Mike Dirolf
54be5db873
removing all support for mongo-qa tests
...
allows us to remove SON.from_xml
- not deprecating this as it was used internally only AFAIK
therefore eliminates driver dependency on elementtree
2010-01-05 14:20:12 -05:00
Mike Dirolf
a9810bffe2
minor: broken test
2009-12-18 13:21:29 -05:00
Mike Dirolf
f5250a221f
minor: no longer supporting regex from_xml
2009-11-24 10:49:37 -05:00
Mike Dirolf
90beef7b20
minor: more PEP 8
2009-06-05 16:54:02 -04:00
Mike Dirolf
1d6e11f5a3
to_dict for SON
2009-03-18 17:39:43 -04:00
Mike Dirolf
1ffd0773e5
Revert "hopefully faster way to create SON"
...
unnecessary.
This reverts commit d1e2980046 .
2009-02-05 14:44:01 -05:00
Mike Dirolf
d1e2980046
hopefully faster way to create SON
2009-02-05 13:34:28 -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
88a62b0c3e
license
2009-01-22 15:10:00 -05:00
Mike Dirolf
d6c0ec39a3
create package pymongo and move all pymongo related modules there
2009-01-22 10:44:26 -05:00
Mike Dirolf
19ccdb8194
utc
2009-01-21 18:24:41 -05:00
Mike Dirolf
55886c9d81
move son tests to test directory
2009-01-16 14:56:17 -05:00