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
TestFileSet test failures on i686 architecture #1743
Comments
This is strange - I don't understand why, in Python 3 (which uses unlimited Can you try just removing the If we can understand the underlying reasons, I'd support adding a check for 32-bit platform to the |
36**6 is [A-Z][0-9] for the 6 characters (out of 8 total) available for filenames. The asserts just check that the expected number of instances is correct, the real test is after that (I tend to do this in tests to make sure I'm testing what I expect to test since experience has shown that I sometimes get a passing test for the wrong reason).
The upper limit on file-set size is very unlikely to be reached even for just [0-9], but I thought it would be a good idea to at least make some effort at testing it. In practice you'd probably see memory issues long before the theoretical maximum got hit. I could just change it to be in the range [A-Z] if [0-9] isn't enough. |
Describe the bug
2 TestFileSet tests fail on i686 (32-bit x86) architecture with an OverflowError.
FAILED pydicom/tests/test_fileset.py::TestFileSet_Modify::test_write_file_id
FAILED pydicom/tests/test_fileset.py::TestFileSet_Copy::test_file_id
Expected behavior
Test behavior should be consistent across architectures.
Steps To Reproduce
Run
in the pydicom directory on an i686 machine.
Virtualizing i686 using QEMU also reproduces the issue.
Your environment
The text was updated successfully, but these errors were encountered: