Closed chhenning closed 6 years ago
\python3\tests\unit\nupic\algorithms>python sdr_classifier_test.py ...F....................ss. ====================================================================== FAIL: testComputeCategory (__main__.SDRClassifierTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "sdr_classifier_test.py", line 249, in testComputeCategory self.assertIsInstance(value, (type(None), bytes)) AssertionError: 'D' is not an instance of (<class 'NoneType'>, <class 'bytes'>)
see: https://discourse.numenta.org/t/python-3-migration-sdr-classifier-test/3456
'D' is an instance of 'str'. 2to3 script issue. It should be self.assertIsInstance(value, (type(None), str)) and not self.assertIsInstance(value, (type(None), bytes))
self.assertIsInstance(value, (type(None), str))
self.assertIsInstance(value, (type(None), bytes))