summaryrefslogtreecommitdiff
path: root/factory/compat.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-06-15 16:15:39 +0200
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-06-15 16:17:14 +0200
commitb72fa40e52f3b767144b11f1d83c36d417f023d8 (patch)
tree4233f832395b2ee9a5bb3034b55dd404f4371d61 /factory/compat.py
parent94d7defa820b69152fb5aeadb3f5ccc3611158fa (diff)
downloadfactory-boy-b72fa40e52f3b767144b11f1d83c36d417f023d8.tar
factory-boy-b72fa40e52f3b767144b11f1d83c36d417f023d8.tar.gz
Fix coverage
Diffstat (limited to 'factory/compat.py')
-rw-r--r--factory/compat.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/factory/compat.py b/factory/compat.py
index 9594550..7c9b845 100644
--- a/factory/compat.py
+++ b/factory/compat.py
@@ -28,17 +28,17 @@ import sys
PY2 = (sys.version_info[0] == 2)
-if PY2:
+if PY2: # pragma: no cover
def is_string(obj):
return isinstance(obj, (str, unicode))
-else:
+else: # pragma: no cover
def is_string(obj):
return isinstance(obj, str)
-try:
+try: # pragma: no cover
# Python >= 3.2
UTC = datetime.timezone.utc
-except AttributeError:
+except AttributeError: # pragma: no cover
try:
# Fallback to pytz
from pytz import UTC