Skip to content

Commit e2a94a5

Browse files
committed
tests: Compat restore tests with python2 for testing basic tests in old platforms
1 parent 5b6ca62 commit e2a94a5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/restore.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
import subprocess
55
import sys
66
from time import sleep
7-
from datetime import datetime, timedelta, timezone
7+
from datetime import datetime, timedelta
8+
try:
9+
from datetime import timezone
10+
except ImportError: # py2compat
11+
from pytz import timezone
812
import hashlib
913
import shutil
1014
import json

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy