Skip to content

Conversation

@aeros
Copy link
Contributor

@aeros aeros commented Jul 1, 2019

This is the final component of issue 19696. This PR includes both test_threaded_import.py and threaded_import_hangers.py because the hangers are required for the threaded import test, so the two files are directly related. I'm not sure as to why the changes can't be automatically merged, the previous file move I had done had no issues with that. Is it due to more than one file being moved in a single PR?

There's a minor typo in one of the commit messages ("theaded" instead of "threaded"), but there were no issues with the file moves. Is it possible to edit the commit messages? If this typo is an issue and there's no way of editing the commit messages, I can create a new branch, redo the changes, and submit another PR.

Since this is just a file move, a "skip news" label would likely be appropriate.

https://bugs.python.org/issue19696

@aeros
Copy link
Contributor Author

aeros commented Jul 2, 2019

I believe I found the cause of the issue, on line 184, import test.threaded_import_hangers probably needs to be changed to import test.test_importlib.threaded_import_hangers to reflect the new location of the file.

Edit: looks like I have to change the other references as well. Hopefully that fixes the issue.

aeros added 2 commits July 1, 2019 20:21
The import statement needed to be updated to reflect the location change of ``threaded_import_hangers.py``
Updated the other references to ``threaded_import_hangers.py`` to reflect the change in location
@aeros
Copy link
Contributor Author

aeros commented Jul 2, 2019

After performing a code search of all references to threaded_import_hangers, it appears there is another reference to it in PCbuild/lib.pyproj. I'll update that reference as well.

Edit: also updated the references to test_pkg_import.py in lib.pyproj, that file was moved and renamed from test_pkgimport.py in a previous PR (component of the same issue).

Since the location of threaded_import_hangers.py was modified as part of issue 19696, the reference to it needs to be updated.
@aeros aeros requested a review from a team as a code owner July 2, 2019 00:37
aeros added 2 commits July 1, 2019 20:40
Since the location of test_threaded_import.py was modified in issue 19696, the reference to it needs to be updated.
Since the location of test_pkgimport.py was changed and the file was renamed to test_import_pkg.py, the reference to it should be updated. This did not cause any issues in merge which moved the file, but it should updated anyways.
@aeros
Copy link
Contributor Author

aeros commented Jul 2, 2019

@brettcannon Do I need to resubmit the PR for the tests to be ran again, or is there something else that I'm missing? If I need to resubmit the PR, I'll instead break it up into two. test_threaded_import.py was able to be moved without issue, it seems that moving threaded_import_hangers.py has been the primary cause of the conflicts. At this point, I have no idea as to what could be the exact cause of these issues. All of the references have been updated, and as far as I can tell, nothing else should have changed from the location of the file being moved.

@aeros
Copy link
Contributor Author

aeros commented Jul 3, 2019

Closing this PR, I'll create a new one which exclusively moves test_threaded_import.py and attempt to move test_import_hangers.py in a separate one later tonight or tomorrow. Hopefully that will resolve the merge conflicts.

@aeros aeros closed this Jul 3, 2019
@aeros aeros deleted the move-threaded_import branch July 3, 2019 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants