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

One test_pywbemcli_operations fails test in win32 #1440

Open
KSchopmeyer opened this issue Oct 28, 2024 · 0 comments
Open

One test_pywbemcli_operations fails test in win32 #1440

KSchopmeyer opened this issue Oct 28, 2024 · 0 comments
Assignees
Milestone

Comments

@KSchopmeyer
Copy link
Contributor

KSchopmeyer commented Oct 28, 2024

Once the limitation on tests in pywbemcli_operations os=win32 were removed, the tests pass except for one single test:

For the moment we propose to block that particular test to get the remainder of the changes in this PR incorporated. This allows executing the tests for windows with the pywbemcliu_operations now rather than waiting for a fix to this issue.

The test that fails is:

test_module: test_pywbemcli_operaitions.py
line: 842,
desc: "Mock env with standalone mock script with deps; change dependent file"
error: FAILED tests/unit/pywbemcli/test_pywbemcli_operations.py::test_build_mockenv[Mock env with standalone mock script with deps; change dependent file-kwargs28-None-None-True] - AssertionError: Missing line on stdout:
Testcase: Mock env with standalone mock script with deps; change dependent file
---- Actual stdout:
Mock environment for connection definition 'test_build_mockenv' has been loaded from cache.

---- Expected line (regexp):
Mock environment .* will be rebuilt because the mock files have changed.
---- End

and it fails for all windows environments but passes for all other enviroments.

It would appear that either the change to the file for the mock or the comparison of md5 id failed for this test. However this error does occur when tested locally on windows system.

@KSchopmeyer KSchopmeyer self-assigned this Oct 28, 2024
@KSchopmeyer KSchopmeyer added this to the 1.4.0 milestone Oct 28, 2024
KSchopmeyer pushed a commit that referenced this issue Oct 29, 2024
Removes another couple of things involving python 2.7

1. Test that was specialized for python 2.7 on windows, Issue 1590
2. Reference to python 2.7 in pywbem_server
3. Remove tests/unit/pywbemcli/test_python_tell.py - This test was
   created to confirm that there were no issues between the tell()
   function on windows with python 2.7 and to verify that
   test_build_mockenv() works. With the removal of python 2.7 as
   a platform, this test is no longer necessary.
4. version doc that used python 2.7.11 as example in tools.

Note that one test in test_pywbemcli_operations.py from the group
that was disabled because of a windows issue is still marked
disabled because that test fails.  See issue #1440.
@KSchopmeyer KSchopmeyer changed the title test_pywbemcli_operations fails test in win32 One test_pywbemcli_operations fails test in win32 Nov 4, 2024
andy-maier pushed a commit that referenced this issue Nov 4, 2024
Removes another couple of things involving python 2.7

1. Test that was specialized for python 2.7 on windows, Issue 1590
2. Reference to python 2.7 in pywbem_server
3. Remove tests/unit/pywbemcli/test_python_tell.py - This test was
   created to confirm that there were no issues between the tell()
   function on windows with python 2.7 and to verify that
   test_build_mockenv() works. With the removal of python 2.7 as
   a platform, this test is no longer necessary.
4. version doc that used python 2.7.11 as example in tools.

Note that one test in test_pywbemcli_operations.py from the group
that was disabled because of a windows issue is still marked
disabled because that test fails.  See issue #1440.
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

1 participant