From 62c5645b7a81ab50a5ab24c460677dd1c8598c1b Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 9 May 2017 10:05:05 -0300 Subject: [PATCH] oh, well --- nikola/nikola.py | 1 + requirements-extras.txt | 1 + tests/test_shortcodes.py | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nikola/nikola.py b/nikola/nikola.py index 37a1437a9b..3e50bb5973 100644 --- a/nikola/nikola.py +++ b/nikola/nikola.py @@ -58,6 +58,7 @@ from yapsy.PluginManager import PluginManager from blinker import signal + from .post import Post # NOQA from .state import Persistor from . import DEBUG, utils, shortcodes diff --git a/requirements-extras.txt b/requirements-extras.txt index b168e63bc1..445f2c7261 100644 --- a/requirements-extras.txt +++ b/requirements-extras.txt @@ -13,3 +13,4 @@ ipykernel>=4.0.0 ghp-import2>=1.0.0 ws4py==0.4.2 watchdog==0.8.3 +AppMetrics==0.5.0 diff --git a/tests/test_shortcodes.py b/tests/test_shortcodes.py index 30266ae90c..bfff101bdf 100644 --- a/tests/test_shortcodes.py +++ b/tests/test_shortcodes.py @@ -4,6 +4,8 @@ u"""Test shortcodes.""" from __future__ import unicode_literals +import itertools + import pytest from nikola import shortcodes from .base import FakeSite, BaseTestCase @@ -88,7 +90,7 @@ def test_errors(self): def test_extract_shortcodes(input, expected, monkeypatch): i = iter('SC%d' % i for i in range(1, 100)) - if sys.version_info[0] < "3": + if sys.version_info[0] < 3: monkeypatch.setattr(shortcodes, '_new_sc_id', i.next) else: monkeypatch.setattr(shortcodes, '_new_sc_id', i.__next__)