summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
Diffstat (limited to 'factory')
-rw-r--r--factory/compat.py8
-rw-r--r--factory/fuzzy.py2
2 files changed, 5 insertions, 5 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
diff --git a/factory/fuzzy.py b/factory/fuzzy.py
index e266b93..d3b130b 100644
--- a/factory/fuzzy.py
+++ b/factory/fuzzy.py
@@ -37,7 +37,7 @@ class BaseFuzzyAttribute(declarations.OrderedDeclaration):
Custom fuzzers should override the `fuzz()` method.
"""
- def fuzz(self):
+ def fuzz(self): # pragma: no cover
raise NotImplementedError()
def evaluate(self, sequence, obj, create, extra=None, containers=()):