PostgreSQL InspectDB test fails on Windows.
On Windows, inspectdb..tests.InspectDBTransactionalTests.test_foreign_data_wrapper
fails with the following error:
The error was: could not open file "/dev/null" for reading: No such file or directory
HINT: COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy.
AssertionError: 'class InspectdbIrisForeignTable(models.Model):' not found in [...]
This is because of the way the test is written as pointed out by Nick Pope. Patch fixes this by generalizing the test to use os.devnull to be OS-agnostic instead of /dev/null always.
Change History
(8)
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Summary: |
PostgreSQL InspectDB tests due to assuming it only runs on Linux → PostgreSQL InspectDB test fails due to assuming it only runs on Linux
|
Owner: |
changed from nobody to Ahmad A. Hussein
|
Summary: |
PostgreSQL InspectDB test fails due to assuming it only runs on Linux → PostgreSQL InspectDB test fails on Windows.
|
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
PR