This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Temporary workaround for postgrespro/pg_probackup#447
- Loading branch information
1 parent
945146f
commit 8797f4d
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/tests/restore.py b/tests/restore.py | ||
index 47419e5a..b3d4aef7 100644 | ||
--- a/tests/restore.py | ||
+++ b/tests/restore.py | ||
@@ -4,7 +4,11 @@ from .helpers.ptrack_helpers import ProbackupTest, ProbackupException | ||
import subprocess | ||
import sys | ||
from time import sleep | ||
-from datetime import datetime, timedelta, timezone | ||
+from datetime import datetime, timedelta | ||
+try: | ||
+ from datetime import timezone | ||
+except ImportError: # py2compat | ||
+ from pytz import timezone | ||
import hashlib | ||
import shutil | ||
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ pytest-json==0.4.0 | |
enum34==1.1.6 | ||
testgres==1.8.2 | ||
pathlib | ||
pytz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters