Skip to content
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

django3.2-tests0 presubmit fails with error ModuleNotFoundError: No module named 'tests.sessions_tests' #837

Open
parthea opened this issue Oct 8, 2023 · 0 comments
Assignees
Labels
api: spanner Issues related to the googleapis/python-spanner-django API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@parthea
Copy link
Contributor

parthea commented Oct 8, 2023

The django3.2-tests0 presubmit check is failing. See build log.

The stack trace is below

======================================================================
ERROR: test_clearsessions_unsupported (sessions_tests.tests.ClearSessionsCommandTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/python-spanner-django/python-spanner-django/django_tests_dir/django3.2/tests/sessions_tests/tests.py", line 923, in test_clearsessions_unsupported
    management.call_command('clearsessions')
  File "/home/runner/work/python-spanner-django/python-spanner-django/django_tests_dir/django3.2/django/core/management/__init__.py", line 181, in call_command
    return command.execute(*args, **defaults)
  File "/home/runner/work/python-spanner-django/python-spanner-django/django_tests_dir/django3.2/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/home/runner/work/python-spanner-django/python-spanner-django/django_tests_dir/django3.2/django/contrib/sessions/management/commands/clearsessions.py", line 14, in handle
    engine = import_module(settings.SESSION_ENGINE)
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'tests.sessions_tests'
@parthea parthea added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Oct 8, 2023
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner-django API. label Oct 8, 2023
@asthamohta asthamohta assigned ankiaga and unassigned asthamohta Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner-django API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants