~raj-abhilash1/mailman/py3

« back to all changes in this revision

Viewing changes to src/mailman/utilities/tests/test_import.py

  • Committer: Abhilash Raj
  • Date: 2014-11-25 12:42:00 UTC
  • Revision ID: raj.abhilash1@gmail.com-20141125124200-j4dqlqagfjaahrql
intermediate commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
import os
30
30
import mock
31
 
import cPickle
 
31
import pickle
32
32
import unittest
33
33
 
34
34
from datetime import timedelta, datetime
78
78
        self._mlist = create_list('blank@example.com')
79
79
        pickle_file = resource_filename('mailman.testing', 'config.pck')
80
80
        with open(pickle_file) as fp:
81
 
            self._pckdict = cPickle.load(fp)
 
81
            self._pckdict = pickle.load(fp)
82
82
 
83
83
    def _import(self):
84
84
        import_config_pck(self._mlist, self._pckdict)