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

Fixed postgres_tests.test_signals.OIDTests to run in isolation. #10491

Merged
merged 1 commit into from Oct 9, 2018
Merged

Fixed postgres_tests.test_signals.OIDTests to run in isolation. #10491

merged 1 commit into from Oct 9, 2018

Conversation

jdufresne
Copy link
Member

Fixes failures:

======================================================================
FAIL: test_citext_cache (postgres_tests.test_signals.OIDTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../django/tests/postgres_tests/test_signals.py", line 26, in test_citext_cache
    get_citext_oids(connection.alias)
  File ".../django/django/test/testcases.py", line 82, in __exit__
    '%d. %s' % (i, query['sql']) for i, query in enumerate(self.captured_queries, start=1)
AssertionError: 1 != 0 : 1 queries executed, 0 expected
Captured queries were:
1. SELECT typarray FROM pg_type WHERE typname = 'citext'

======================================================================
FAIL: test_hstore_cache (postgres_tests.test_signals.OIDTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../django/tests/postgres_tests/test_signals.py", line 22, in test_hstore_cache
    get_hstore_oids(connection.alias)
  File ".../django/django/test/testcases.py", line 82, in __exit__
    '%d. %s' % (i, query['sql']) for i, query in enumerate(self.captured_queries, start=1)
AssertionError: 1 != 0 : 1 queries executed, 0 expected
Captured queries were:
1. SELECT t.oid, typarray FROM pg_type t JOIN pg_namespace ns ON typnamespace = ns.oid WHERE typname = 'hstore'

Fixes failures:

======================================================================
FAIL: test_citext_cache (postgres_tests.test_signals.OIDTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../django/tests/postgres_tests/test_signals.py", line 26, in test_citext_cache
    get_citext_oids(connection.alias)
  File ".../django/django/test/testcases.py", line 82, in __exit__
    '%d. %s' % (i, query['sql']) for i, query in enumerate(self.captured_queries, start=1)
AssertionError: 1 != 0 : 1 queries executed, 0 expected
Captured queries were:
1. SELECT typarray FROM pg_type WHERE typname = 'citext'

======================================================================
FAIL: test_hstore_cache (postgres_tests.test_signals.OIDTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".../django/tests/postgres_tests/test_signals.py", line 22, in test_hstore_cache
    get_hstore_oids(connection.alias)
  File ".../django/django/test/testcases.py", line 82, in __exit__
    '%d. %s' % (i, query['sql']) for i, query in enumerate(self.captured_queries, start=1)
AssertionError: 1 != 0 : 1 queries executed, 0 expected
Captured queries were:
1. SELECT t.oid, typarray FROM pg_type t JOIN pg_namespace ns ON typnamespace = ns.oid WHERE typname = 'hstore'
@timgraham timgraham merged commit 31c0348 into django:master Oct 9, 2018
@jdufresne jdufresne deleted the hstore-cache branch November 9, 2018 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants