From 15a840953511f93bd7d10e437ffdb871ce96d646 Mon Sep 17 00:00:00 2001 From: Johnny Robeson Date: Sun, 31 Jul 2016 02:48:07 -0400 Subject: [PATCH] add python version to beet --version --- beets/ui/commands.py | 2 ++ test/test_ui.py | 1 + 2 files changed, 3 insertions(+) diff --git a/beets/ui/commands.py b/beets/ui/commands.py index af18a5c0d..fce977b14 100644 --- a/beets/ui/commands.py +++ b/beets/ui/commands.py @@ -21,6 +21,7 @@ from __future__ import division, absolute_import, print_function import os import re +from platform import python_version from collections import namedtuple, Counter from itertools import chain @@ -1317,6 +1318,7 @@ default_commands.append(stats_cmd) def show_version(lib, opts, args): print_(u'beets version %s' % beets.__version__) + print_(u'python version {}'.format(python_version())) # Show plugins. names = sorted(p.name for p in plugins.find_plugins()) if names: diff --git a/test/test_ui.py b/test/test_ui.py index 558c00932..160d1dfbc 100644 --- a/test/test_ui.py +++ b/test/test_ui.py @@ -1242,6 +1242,7 @@ class CommonOptionsParserCliTest(unittest.TestCase, TestHelper): def test_version(self): l = self.run_with_output(u'version') + self.assertIn(u'python version', l) self.assertIn(u'no plugins loaded', l) # # Need to have plugin loaded