-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecation warnings using mock_dynamodb2 with python 3.8.2 #2978
Comments
If anyone else is having this problem, note that you can work around this by changing the imports in your test suite to supress the warnings import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
import boto3
from moto import mock_dynamodb2 or by using pytest.ini [pytest]
filterwarnings =
ignore::DeprecationWarning:moto.*:
ignore::DeprecationWarning:boto.*: |
Thanks for raising this, and for providing a workaround, @mowat27. Marking this as an enhancement. |
Hi @bblommers, it looks like the issue was already fixed on the master #2624 |
This should now be fixed as of moto >= 1.3.16. |
I am using moto v1.3.16, installed with pipenv, and this warning still appears. In my case I'm using
|
The `boto` library (long ago superseded by `boto3`) has not had an official release in over two years or even a commit in the last 18 months. Importing the package (or indirectly importing it by via `moto`) generates a deprecation warning. Additionally, an ever-increasing number of `moto` users who have left `boto` behind for `boto3` are still being forced to install `boto`. This commit vendors a very small subset of the `boto` library--only the code required by `moto` to run--into the /packages subdirectory. A README file is included explaining the origin of the files and a recommendation for how they can be removed entirely in a future release. NOTE: Users of `boto` will still be able to use `moto` after this is merged. closes getmoto#2978 closes getmoto#3013 closes getmoto#3170 closes getmoto#3418 relates to getmoto#2950
Behaviour
When I use mock_dynamodb2 with python 3.8.2 I get deprecation warnings.
Versions
Moto was installed using Pipenv
Example
Given the following pytest file...
Deprecation warnings when I run pytest
Expected behaviour
No warnings
This is annoying but not critical at the moment. I'd like to keep my project up to date with future python releases though.
Related issues
A search for
DeprecationWarning
in open issues yielded no results. Sorry if I missed something.The text was updated successfully, but these errors were encountered: