Skip to content

fix(MapWindow): unicode foes in read_into_memory() used by gitpython TCs #30

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Oct 22, 2016

Conversation

ankostis
Copy link
Contributor

Drop Windows only codepath bypassing memory-mapping due to some leaks in
the past.
Now Appveyor proves everything run ok.
Additionally, this codepath had unicode problems on PY3. So deleting it,
fixes 2 TCs in gitpython:

  • TestRepo.test_file_handle_leaks()
  • TestObjDbPerformance.test_random_access()

See gitpython-developers/GitPython#525

@ankostis
Copy link
Contributor Author

@Byron please delay the release, to include this fix (and maching code from gitpython project).

@coveralls
Copy link

coveralls commented Oct 22, 2016

Coverage Status

Changes Unknown when pulling 1bb6ff0 on ankostis:win_mmap into * on gitpython-developers:master*.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 91814e6 on ankostis:win_mmap into * on gitpython-developers:master*.

1 similar comment
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 91814e6 on ankostis:win_mmap into * on gitpython-developers:master*.

@ankostis
Copy link
Contributor Author

But is not ready yet...

Drop Windows only codepath bypassing memory-mapping due to some leaks in
the past. 
Now Appveyor proves everything run ok.  
Additionally, this codepath had unicode problems on PY3. So deleting it,
fixes 2 TCs in gitpython:
+ TestRepo.test_file_handle_leaks()
+ TestObjDbPerformance.test_random_access()

See gitpython-developers/GitPython#525
@coveralls
Copy link

coveralls commented Oct 22, 2016

Coverage Status

Changes Unknown when pulling b2eafcc on ankostis:win_mmap into * on gitpython-developers:master*.

ankostis added a commit to ankostis/GitPython that referenced this pull request Oct 22, 2016
Now 2 more TCs pass in Windows:
+ TestRepo.test_file_handle_leaks()
+ TestObjDbPerformance.test_random_access()

See gitpython-developers/smmap#30
@ankostis
Copy link
Contributor Author

It is ok now.

@Byron
Copy link
Member

Byron commented Oct 22, 2016

Looks good! Thank you.
Interesting that this 'test_read_into_memory' codepath is entirely unused after all.

@Byron Byron merged commit 9b21759 into gitpython-developers:master Oct 22, 2016
@Byron
Copy link
Member

Byron commented Oct 22, 2016

Released via v2.0.1.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants