• Kirill Smelkov's avatar
    go/neo/t/neotest: Use python -c 'print ...' in a way that works on both py2 and py3 · 789c9ed9
    Kirill Smelkov authored
    Without parenthesis it was failing on py3:
    
    	(neo) (py3.venv) (g.env) kirr@deca:~/src/neo/src/lab.nexedi.com/kirr/neo/go/neo/t$ ./neotest info-local
    	date:   Wed, 18 May 2022 11:05:50 +0300
    	xnode:  kirr@deca.navytux.spb.ru (2401:5180:0:af::1 192.168.0.3 (+ 1·ipv4))
    	uname:  Linux deca 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux
    	cpu:    Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz
    	  File "<string>", line 1
    	    print '%.2fGHz' % (400000 / 1E6)
    	          ^
    	SyntaxError: invalid syntax
    789c9ed9
neotest 40.4 KB