summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-08-03 12:18:11 (GMT)
committerJesus Cea <jcea@jcea.es>2012-08-03 12:18:11 (GMT)
commit5323173dee1f20fc53c2df4707ec6d266534b748 (patch)
treebae19c56eed10e2d870c472a8cb68577455c0291 /Lib/test/test_posix.py
parent077ef45a749ccaa0b7d426c83ca7f8df3523a0e3 (diff)
downloadcpython-5323173dee1f20fc53c2df4707ec6d266534b748.zip
cpython-5323173dee1f20fc53c2df4707ec6d266534b748.tar.gz
cpython-5323173dee1f20fc53c2df4707ec6d266534b748.tar.bz2
Closes #15514: Correct __sizeof__ support for cpu_set
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r--Lib/test/test_posix.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index f0ad92f..0ea696b 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -1008,6 +1008,12 @@ class PosixTester(unittest.TestCase):
self.assertIs(b, l)
self.assertEqual(l.count(), 3)
+ @requires_sched_affinity
+ @support.cpython_only
+ def test_cpu_set_sizeof(self):
+ self.assertGreater(sys.getsizeof(posix.cpu_set(1000)),
+ sys.getsizeof(posix.cpu_set(1)))
+
def test_rtld_constants(self):
# check presence of major RTLD_* constants
posix.RTLD_LAZY