Changes between Version 1 and Version 2 of Ticket #31736


Ignore:
Timestamp:
Jun 23, 2020, 8:00:27 AM (4 years ago)
Author:
Ahmad A. Hussein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31736 – Description

    v1 v2  
    1 On Windows, ```inspectdb..tests.InspectDBTransactionalTests.test_foreign_data_wrapper``` fails with the following error:
     1On Windows, {{{inspectdb..tests.InspectDBTransactionalTests.test_foreign_data_wrapper}}} fails with the following error:
    22
    3 ```
     3{{{
    44The error was: could not open file "/dev/null" for reading: No such file or directory
    55HINT:  COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy.
    66
    77AssertionError: 'class InspectdbIrisForeignTable(models.Model):' not found in [...]
    8 ```
     8}}}
    99This is because of the way the test is written as [https://github.com/django/django/pull/12646#issuecomment-647944821/ pointed out by]. Patch fixes this by generalizing the test to use os.devnull to be OS-agnostic instead of /dev/null always.
Back to Top