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

Make BackupDB self contained #9

Merged
merged 6 commits into from
Mar 14, 2014
Merged

Make BackupDB self contained #9

merged 6 commits into from
Mar 14, 2014

Conversation

acatton
Copy link
Contributor

@acatton acatton commented Mar 10, 2014

It would be nice to test the app as well. After some resarch, I think we could have something like

DJANGO_SETTINGS_MODULE="whatever" python setup.py test

And we could use these in a custom test tearUp and tearDown method.

@acatton
Copy link
Contributor Author

acatton commented Mar 10, 2014

This fixes #6 and #7

p_last.stdout is open in binary mode. Therefore, in Python 3,
p_last.stdout.read() returns bytes(). path should be open in binary for
cpyfileobj() to be able to write the buffer into the destination in
Python 3.
If we piped:
  ls | grep something | anothercommand

anothercommand's stdout wasn't getting closed.
@acatton acatton merged commit 8e0d5ab into master Mar 14, 2014
@acatton
Copy link
Contributor Author

acatton commented Mar 15, 2014

David approved it by email.

@acatton acatton deleted the self-contained branch September 1, 2014 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants