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

Pyfakefs 3.6 test failures #495

Closed
scarabeusiv opened this issue Oct 7, 2019 · 2 comments
Closed

Pyfakefs 3.6 test failures #495

scarabeusiv opened this issue Oct 7, 2019 · 2 comments

Comments

@scarabeusiv
Copy link

When updating pyfakefs from 3.5.8 to 3.6 release on openSUSE 3 of the tests fail:

[   16s] ======================================================================
[   16s] FAIL: test_append_mode_tell_linux_windows (pyfakefs.tests.fake_os_test.RealOsModuleTest)
[   16s] ----------------------------------------------------------------------
[   16s] Traceback (most recent call last):
[   16s]   File "/home/abuild/rpmbuild/BUILD/pyfakefs-3.6/pyfakefs/tests/fake_os_test.py", line 1224, in test_append_mode_tell_linux_windows
[   16s]     self.check_append_mode_tell_after_truncate(tell_result)
[   16s]   File "/home/abuild/rpmbuild/BUILD/pyfakefs-3.6/pyfakefs/tests/fake_os_test.py", line 1216, in check_append_mode_tell_after_truncate
[   16s]     self.assertEqual(tell_result, f1.tell())
[   16s] AssertionError: 5 != 7L
[   16s] 
[   16s] ======================================================================
[   16s] FAIL: test_fdatasync_pass (pyfakefs.tests.fake_os_test.RealOsModuleTest)
[   16s] ----------------------------------------------------------------------
[   16s] Traceback (most recent call last):
[   16s]   File "/home/abuild/rpmbuild/BUILD/pyfakefs-3.6/pyfakefs/tests/fake_os_test.py", line 1768, in test_fdatasync_pass
[   16s]     self.os.fdatasync, test_fd + 10)
[   16s]   File "/home/abuild/rpmbuild/BUILD/pyfakefs-3.6/pyfakefs/tests/test_utils.py", line 73, in assert_raises_os_error
[   16s]     self.assertEqual(subtype, exc.errno)
[   16s] AssertionError: 9 != 22
[   16s] 
[   16s] ======================================================================
[   16s] FAIL: test_fsync_pass_posix (pyfakefs.tests.fake_os_test.RealOsModuleTest)
[   16s] ----------------------------------------------------------------------
[   16s] Traceback (most recent call last):
[   16s]   File "/home/abuild/rpmbuild/BUILD/pyfakefs-3.6/pyfakefs/tests/fake_os_test.py", line 1740, in test_fsync_pass_posix
[   16s]     self.os.fsync, test_fd + 10)
[   16s]   File "/home/abuild/rpmbuild/BUILD/pyfakefs-3.6/pyfakefs/tests/test_utils.py", line 73, in assert_raises_os_error
[   16s]     self.assertEqual(subtype, exc.errno)
[   16s] AssertionError: 9 != 22
[   16s] 
[   16s] ----------------------------------------------------------------------

The tests fail the same way both on py2 and py3.

This is bit problematic for us now as we need 3.6 because we prepare update for pyton 3.8 (where the old 3.5.8 does not work).

@mrbean-bremen
Copy link
Member

mrbean-bremen commented Oct 7, 2019

These are real OS tests that actually should not run in your case. I seem to have commented out the relevant code that disabled them and accidentally checked that in - sorry for that.
I will correct this tonight and probably make a new dot release.

@mrbean-bremen
Copy link
Member

Ok, should work in 3.6.1 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants