10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9e2f3b commit f4aff0bCopy full SHA for f4aff0b
future/tests/test_str.py
@@ -256,6 +256,21 @@ def test_ne(self):
256
self.assertTrue(b'ABCD' != s)
257
self.assertTrue(bytes(b'ABCD') != s)
258
259
+ def test_cmp(self):
260
+ s = str(u'ABC')
261
+ with self.assertRaises(TypeError):
262
+ s > 3
263
264
+ s < 1000
265
266
+ s > b'XYZ'
267
268
+ s < b'XYZ'
269
270
+ s <= 3
271
272
+ s >= int(3)
273
+
274
275
if __name__ == '__main__':
276
unittest.main()
0 commit comments