@@ -216,16 +216,16 @@ def test_instantiating_package_cache_when_both_tar_bz2_and_conda_exist():
216
216
217
217
PackageCacheData ._cache_ .clear ()
218
218
pcd = PackageCacheData (pkgs_dir )
219
- pc_recs = tuple (pcd .iter_records ())
220
- assert len (pc_recs ) == 1
221
- pc_rec = pc_recs [0 ]
219
+ pcrecs = tuple (pcd .iter_records ())
220
+ assert len (pcrecs ) == 1
221
+ pcrec = pcrecs [0 ]
222
222
223
223
# ensure the package was actually extracted by presence of repodata_record.json
224
224
with open (join (pkgs_dir , zlib_base_fn , "info" , "repodata_record.json" )) as fh :
225
225
repodata_record = json .load (fh )
226
226
227
- assert pc_rec .fn == zlib_conda_fn == repodata_record ["fn" ]
228
- assert pc_rec .md5 == repodata_record ["md5" ]
227
+ assert pcrec .fn == zlib_conda_fn == repodata_record ["fn" ]
228
+ assert pcrec .md5 == repodata_record ["md5" ]
229
229
230
230
pkgs_dir_files = listdir (pkgs_dir )
231
231
assert zlib_base_fn in pkgs_dir_files
@@ -236,7 +236,7 @@ def test_instantiating_package_cache_when_both_tar_bz2_and_conda_exist():
236
236
def test_instantiating_package_cache_when_both_tar_bz2_and_conda_exist_read_only ():
237
237
"""
238
238
If both .tar.bz2 and .conda packages exist in a read-only package cache, but neither is
239
- unpacked, the .conda package should be preferred and pc_rec loaded from that package.
239
+ unpacked, the .conda package should be preferred and pcrec loaded from that package.
240
240
"""
241
241
with make_temp_package_cache () as pkgs_dir :
242
242
# instantiate to create magic file
@@ -266,16 +266,16 @@ def test_instantiating_package_cache_when_both_tar_bz2_and_conda_exist_read_only
266
266
PackageCacheData ._cache_ .clear ()
267
267
268
268
pcd = PackageCacheData (pkgs_dir )
269
- pc_recs = tuple (pcd .iter_records ())
270
- assert len (pc_recs ) == 1
271
- pc_rec = pc_recs [0 ]
269
+ pcrecs = tuple (pcd .iter_records ())
270
+ assert len (pcrecs ) == 1
271
+ pcrec = pcrecs [0 ]
272
272
273
273
# no repodata_record.json file should be created
274
274
assert not isfile (join (pkgs_dir , zlib_base_fn , "info" , "repodata_record.json" ))
275
275
276
- assert pc_rec .fn == zlib_conda_fn
277
- assert pc_rec .md5 == "edad165fc3d25636d4f0a61c42873fbc"
278
- assert pc_rec .size == 112305
276
+ assert pcrec .fn == zlib_conda_fn
277
+ assert pcrec .md5 == "edad165fc3d25636d4f0a61c42873fbc"
278
+ assert pcrec .size == 112305
279
279
280
280
pkgs_dir_files = listdir (pkgs_dir )
281
281
assert zlib_base_fn not in pkgs_dir_files
0 commit comments