Changes between Version 1 and Version 2 of Ticket #31736
- Timestamp:
- Jun 23, 2020, 8:00:27 AM (4 years ago)
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:1 On Windows, {{{inspectdb..tests.InspectDBTransactionalTests.test_foreign_data_wrapper}}} fails with the following error: 2 2 3 ``` 3 {{{ 4 4 The error was: could not open file "/dev/null" for reading: No such file or directory 5 5 HINT: COPY FROM instructs the PostgreSQL server process to read a file. You may want a client-side facility such as psql's \copy. 6 6 7 7 AssertionError: 'class InspectdbIrisForeignTable(models.Model):' not found in [...] 8 ``` 8 }}} 9 9 This 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.