| 1 | From: Stefano Rivera <[email protected]> |
| 2 | Date: Sat, 7 Oct 2017 09:38:57 +0200 |
| 3 | Subject: Tests: Skip fsync tests when building with eatmydata |
| 4 | |
| 5 | Forwarded: not-needed |
| 6 | Last-Update: 2012-02-06 |
| 7 | --- |
| 8 | lib-python/3/test/test_os.py | 2 ++ |
| 9 | 1 file changed, 2 insertions(+) |
| 10 | |
| 11 | diff --git a/lib-python/3/test/test_os.py b/lib-python/3/test/test_os.py |
| 12 | index e45b7d4..8c48895 100644 |
| 13 | --- a/lib-python/3/test/test_os.py |
| 14 | +++ b/lib-python/3/test/test_os.py |
| 15 | @@ -2236,6 +2236,8 @@ class TestInvalidFD(unittest.TestCase): |
| 16 | except OSError as e: |
| 17 | self.assertEqual(e.errno, errno.EBADF) |
| 18 | else: |
| 19 | + if f.__name__.endswith('sync'): |
| 20 | + return # eatmydata won't raise an OSError |
| 21 | self.fail("%r didn't raise an OSError with a bad file descriptor" |
| 22 | % f) |
| 23 |