mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 01:25:34 +00:00
Use ordereddict so responses actually stay in order
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
import os
|
||||
import tempfile
|
||||
try:
|
||||
from collections import Counter
|
||||
from collections import Counter, OrderedDict
|
||||
except ImportError:
|
||||
from .counter import Counter
|
||||
from .compat.counter import Counter
|
||||
from .compat.ordereddict import OrderedDict
|
||||
|
||||
# Internal imports
|
||||
from .patch import install, reset
|
||||
@@ -27,7 +28,7 @@ class Cassette(object):
|
||||
|
||||
def __init__(self, path):
|
||||
self._path = path
|
||||
self.data = {}
|
||||
self.data = OrderedDict()
|
||||
self.play_counts = Counter()
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user