Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit a24706e

Browse files
committed
Skip test on older python
1 parent 42d94f1 commit a24706e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_attrload.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
# author Salvo "LtWorf" Tomaselli <tiposchi@tiscali.it>
1818

1919
from enum import Enum
20-
from typing import Dict, List, NamedTuple, Optional, Set, Tuple, Union, Literal
20+
from typing import Dict, List, NamedTuple, Optional, Set, Tuple, Union
2121
import unittest
22+
import sys
2223

2324
from attr import attrs, attrib, define, field
2425

@@ -258,6 +259,11 @@ class C:
258259
load({'a': 'a', 'b': 1}, C)
259260

260261
def test_typed_conversion(self):
262+
if sys.version_info.minor < 8:
263+
# Skip for older than 3.8
264+
return
265+
266+
from typing import Literal
261267

262268
@define
263269
class A:

0 commit comments

Comments
 (0)