summaryrefslogtreecommitdiff
path: root/factory/declarations.py
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polyconseil.fr>2011-08-10 19:58:01 +0200
committerRaphaël Barrois <raphael.barrois@polyconseil.fr>2011-08-10 19:58:01 +0200
commitbbe78f8b43ee92120072a7be8c3e5b24f9f8a940 (patch)
tree4cbef9b4e872218ca028bb157d826aa3e2f95970 /factory/declarations.py
parent70e961169a14588d223e282387cdbab0cb8a404c (diff)
downloadfactory-boy-bbe78f8b43ee92120072a7be8c3e5b24f9f8a940.tar
factory-boy-bbe78f8b43ee92120072a7be8c3e5b24f9f8a940.tar.gz
Use the same sequence counter for parent and child classes.
Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
Diffstat (limited to 'factory/declarations.py')
-rw-r--r--factory/declarations.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/factory/declarations.py b/factory/declarations.py
index d827f30..b930b4d 100644
--- a/factory/declarations.py
+++ b/factory/declarations.py
@@ -23,7 +23,10 @@ import threading
global_counter_lock = threading.Lock()
class GlobalCounter(object):
- """A simple global counter."""
+ """A simple global counter.
+
+ It is used to order the various OrderedDeclaration together.
+ """
_value = 0