TST: changed behavior of df.loc on multiindex
-added unittest  for issue #43599 
-error occurs due to different versions of pandas


Hello @gamenerd457! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:

* In the file [`pandas/tests/indexing/multiindex/test_loc.py`](https://github.com/pandas-dev/pandas/blob/0f772a6504ce7f0cc715549fcda650e861e76cb9/pandas/tests/indexing/multiindex/test_loc.py):

> [Line 915:1](https://github.com/pandas-dev/pandas/blob/0f772a6504ce7f0cc715549fcda650e861e76cb9/pandas/tests/indexing/multiindex/test_loc.py#L915): [E302](https://duckduckgo.com/?q=pep8%20E302) expected 2 blank lines, found 0
> [Line 917:77](https://github.com/pandas-dev/pandas/blob/0f772a6504ce7f0cc715549fcda650e861e76cb9/pandas/tests/indexing/multiindex/test_loc.py#L917): [W291](https://duckduckgo.com/?q=pep8%20W291) trailing whitespace
> [Line 922:76](https://github.com/pandas-dev/pandas/blob/0f772a6504ce7f0cc715549fcda650e861e76cb9/pandas/tests/indexing/multiindex/test_loc.py#L922): [W291](https://duckduckgo.com/?q=pep8%20W291) trailing whitespace
> [Line 924:9](https://github.com/pandas-dev/pandas/blob/0f772a6504ce7f0cc715549fcda650e861e76cb9/pandas/tests/indexing/multiindex/test_loc.py#L924): [E123](https://duckduckgo.com/?q=pep8%20E123) closing bracket does not match indentation of opening bracket's line

* In the file [`pandas/tests/indexing/test_loc.py`](https://github.com/pandas-dev/pandas/blob/0f772a6504ce7f0cc715549fcda650e861e76cb9/pandas/tests/indexing/test_loc.py):

> [Line 2864:1](https://github.com/pandas-dev/pandas/blob/0f772a6504ce7f0cc715549fcda650e861e76cb9/pandas/tests/indexing/test_loc.py#L2864): [W391](https://duckduckgo.com/?q=pep8%20W391) blank line at end of file



##### Comment last updated at 2021-10-12 07:12:18 UTC 


> Thanks for the pr @gamenerd457. Please look at the contributing guide (https://pandas.pydata.org/docs/development/index.html#development), especially the portions about testing (we don't use `unittest`) and style (this is currently failing checks)

I have made the changes ca you merge master and update to comments This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this. Thanks for the PR but appears to have gone stale. If interested in continuing please merge the main branch, address the review, and we can reopen.