summaryrefslogtreecommitdiff
path: root/Lib/test/test_anydbm.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_anydbm.py')
-rw-r--r--Lib/test/test_anydbm.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/test/test_anydbm.py b/Lib/test/test_anydbm.py
index 0cdc2c321d..46d46d961a 100644
--- a/Lib/test/test_anydbm.py
+++ b/Lib/test/test_anydbm.py
@@ -72,10 +72,8 @@ class AnyDBMTestCase(unittest.TestCase):
f.close()
def keys_helper(self, f):
- keys = f.keys()
- keys.sort()
- dkeys = self._dict.keys()
- dkeys.sort()
+ keys = sorted(f.keys())
+ dkeys = sorted(self._dict.keys())
self.assertEqual(keys, dkeys)
return keys