Skip to content
Permalink
Browse files
oh, well
  • Loading branch information
ralsina committed May 9, 2017
1 parent 6b4c4ba commit 62c5645b7a81ab50a5ab24c460677dd1c8598c1b
Showing with 5 additions and 1 deletion.
  1. +1 −0 nikola/nikola.py
  2. +1 −0 requirements-extras.txt
  3. +3 −1 tests/test_shortcodes.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
@@ -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
@@ -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__)

0 comments on commit 62c5645

Please sign in to comment.