]> arthur.barton.de Git - bup.git/commit
Add pytest context manager to save/restore test environment
authorRob Browning <rlb@defaultvalue.org>
Sun, 1 Nov 2020 20:03:41 +0000 (14:03 -0600)
committerRob Browning <rlb@defaultvalue.org>
Thu, 26 Nov 2020 21:53:09 +0000 (15:53 -0600)
commited481c54a523d52dfd575c5f4065c5ddfdab8146
tree98d934c8c3e57e37a23fa2dd29239e0678dbd5b7
parent4a11c8b2d181a103ce447d513a81c325003e07d9
Add pytest context manager to save/restore test environment

Without this, test_git.py could fail because test_ftp had left its
GIT_DIR lying around, and other tests could fail because it changed
and didn't restore the working directory.  Make sure to call tzset()
after any TZ changes.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
HACKING
conftest.py [new file with mode: 0644]