In an unittest documentation example, __version__ is not PEP 396
July 10, 2018
2:27 a.m.
Hello, in an example in https://docs.python.org/3.8/library/unittest.html#skipping-tests-and-expecte... One could read @unittest.skipIf(mylib.__version__ < (1, 3), "not supported in this library version") However, PEP 396 indicates "__version__ number SHOULD be a string", therefore the example is against a good python practice, and package manager like me would loose time googling the what the good practice is. I suggest changing the example to skipIf(mylib.version_info < (1, 3), ...).
3021
Age (days ago)
3021
Last active (days ago)
0 comments
1 participants
participants (1)
-
Robert Vanden Eynde