From 047a1a6072905e650d8a8c6dee3078a14b9df759 Mon Sep 17 00:00:00 2001 From: Pablo Santiago Blum de Aguiar Date: Tue, 29 Mar 2016 23:34:08 -0300 Subject: [PATCH] #486: Use Path instead of PosixPath --- tests/test_corrector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_corrector.py b/tests/test_corrector.py index ac95e54..164f61f 100644 --- a/tests/test_corrector.py +++ b/tests/test_corrector.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import pytest -from pathlib import PosixPath +from pathlib import Path from thefuck import corrector, const from tests.utils import Rule, Command, CorrectedCommand from thefuck.corrector import get_corrected_commands, organize_commands @@ -30,7 +30,7 @@ class TestGetRules(object): (['git.py', 'bash.py'], ['git'], ['git'], [])]) def test_get_rules(self, glob, settings, paths, conf_rules, exclude_rules, loaded_rules): - glob([PosixPath(path) for path in paths]) + glob([Path(path) for path in paths]) settings.update(rules=conf_rules, priority={}, exclude_rules=exclude_rules)